Mercurial > vim-crosoft
comparison scripts/ycm_extra_conf.py @ 11:096e80c13781
Use the correct documentation extension.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 22 Jan 2021 16:42:25 -0800 |
parents | f444739dd8af |
children |
comparison
equal
deleted
inserted
replaced
10:f444739dd8af | 11:096e80c13781 |
---|---|
52 if item_incpaths or item_incfiles: | 52 if item_incpaths or item_incfiles: |
53 incpaths += item_incpaths | 53 incpaths += item_incpaths |
54 incfiles += item_incfiles | 54 incfiles += item_incfiles |
55 return True | 55 return True |
56 | 56 |
57 logger.debug("Requested item didn't have any flags, looking for companion item") | 57 logger.debug("Requested item didn't have any flags, looking for related items") |
58 from find_companion import _find_companion_item | 58 from find_companion import _find_companion_item |
59 companion_item = _find_companion_item(solution, filename, slncache=slncache) | 59 companion_item = _find_companion_item(solution, filename, slncache=slncache) |
60 if companion_item: | 60 if companion_item: |
61 logger.debug("Found companion item: %s" % companion_item) | |
62 item_incpaths, item_incfiles = _get_item_specific_flags(projdir, clcompileitems, companion_item) | 61 item_incpaths, item_incfiles = _get_item_specific_flags(projdir, clcompileitems, companion_item) |
63 incpaths += item_incpaths | 62 if item_incpaths or item_incfiles: |
64 incfiles += item_incfiles | 63 logger.debug("Found flags on companion item: %s" % companion_item) |
65 return True | 64 incpaths += item_incpaths |
65 incfiles += item_incfiles | |
66 return True | |
66 | 67 |
67 #logger.debug("No companion item found, see if we can find flags for a neighbour") | 68 #logger.debug("No companion item found, see if we can find flags for a neighbour") |
68 #os.path.dirname(filename) | 69 #dirname = os.path.dirname(filename) |
70 #neighbournames = os.listdir(dirname) | |
71 #neighbournames.remove(os.path.basename(filename)) | |
72 #for neighbourname in neighbournames: | |
73 # neighbourpath = os.path.join(dirname, neighbourname) | |
74 # item_incpaths, item_incfiles = _get_item_specific_flags(projdir, clcompileitems, neighbourpath) | |
75 # if item_incpaths or item_incfiles: | |
76 # logger.debug("Found flags on: %d" % neighbourpath) | |
77 # incpaths += item_incpaths | |
78 # incfiles += item_incfiles | |
79 # return True | |
80 | |
81 # neighbour_companion = _find_companion_item(solution, filename, slncache=slncache) | |
82 # if neighbour_companion: | |
83 # item_incpaths, item_incfiles = _get_item_specific_flags(projdir, clcompileitems, neighbour_companion) | |
84 # if item_incpaths or item_incfiles: | |
85 # logger.debug("Found flags on: %s" % neighbour_companion) | |
86 # incpaths += item_incpaths | |
87 # incfiles += item_incfiles | |
88 # return True | |
89 | |
90 #logger.debug("No flags found anywhere...") | |
69 return False | 91 return False |
70 | 92 |
71 | 93 |
72 def _expand_extra_flags_with_solution_extra_flags(solution, extraflags): | 94 def _expand_extra_flags_with_solution_extra_flags(solution, extraflags): |
73 argfilename = os.path.join( | 95 argfilename = os.path.join( |