( filename, **kwargs )
| 128 | |
| 129 | |
| 130 | def FlagsForFile( filename, **kwargs ): |
| 131 | if database: |
| 132 | # Bear in mind that compilation_info.compiler_flags_ does NOT return a |
| 133 | # python list, but a "list-like" StringVec object |
| 134 | compilation_info = GetCompilationInfoForFile( filename ) |
| 135 | if not compilation_info: |
| 136 | return None |
| 137 | |
| 138 | final_flags = MakeRelativePathsInFlagsAbsolute( |
| 139 | compilation_info.compiler_flags_, |
| 140 | compilation_info.compiler_working_dir_ ) |
| 141 | |
| 142 | else: |
| 143 | relative_to = DirectoryOfThisScript() |
| 144 | final_flags = MakeRelativePathsInFlagsAbsolute( flags, relative_to ) |
| 145 | |
| 146 | return { |
| 147 | 'flags': final_flags, |
| 148 | 'do_cache': True |
| 149 | } |
nothing calls this directly
no test coverage detected