(filename, **kwargs)
| 141 | |
| 142 | |
| 143 | def FlagsForFile(filename, **kwargs): |
| 144 | # Bear in mind that compilation_info.compiler_flags_ does NOT return a |
| 145 | # python list, but a "list-like" StringVec object |
| 146 | compilation_info = GetCompilationInfoForFile(filename) |
| 147 | if not compilation_info: |
| 148 | return { |
| 149 | 'flags':MakeRelativePathsInFlagsAbsolute(default_flags,DirectoryOfThisScript()), |
| 150 | 'do_cache': True, |
| 151 | } |
| 152 | |
| 153 | final_flags = MakeRelativePathsInFlagsAbsolute( |
| 154 | compilation_info.compiler_flags_, |
| 155 | compilation_info.compiler_working_dir_ |
| 156 | ) |
| 157 | |
| 158 | # Make sure ycm reports more suspicuous code lines |
| 159 | final_flags.append('-Wextra') |
| 160 | |
| 161 | return { |
| 162 | 'flags': final_flags, |
| 163 | 'do_cache': True |
| 164 | } |
nothing calls this directly
no test coverage detected