( filename, **kwargs )
| 157 | |
| 158 | |
| 159 | def FlagsForFile( filename, **kwargs ): |
| 160 | if database: |
| 161 | # Bear in mind that compilation_info.compiler_flags_ does NOT return a |
| 162 | # python list, but a "list-like" StringVec object |
| 163 | compilation_info = GetCompilationInfoForFile( filename ) |
| 164 | if not compilation_info: |
| 165 | return None |
| 166 | |
| 167 | final_flags = MakeRelativePathsInFlagsAbsolute( |
| 168 | compilation_info.compiler_flags_, |
| 169 | compilation_info.compiler_working_dir_ ) |
| 170 | |
| 171 | else: |
| 172 | relative_to = DirectoryOfThisScript() |
| 173 | final_flags = MakeRelativePathsInFlagsAbsolute( flags, relative_to ) |
| 174 | |
| 175 | return { |
| 176 | 'flags': final_flags, |
| 177 | 'do_cache': True |
| 178 | } |
| 179 | |
| 180 | def Settings( **kwargs ): |
| 181 | language = kwargs[ 'language' ] |
nothing calls this directly
no test coverage detected
searching dependent graphs…