This is the main entry point for YCM. Its interface is fixed. Args: filename: (String) Path to source file being edited. Returns: (Dictionary) 'flags': (List of Strings) Command line flags. 'do_cache': (Boolean) True if the result should be cached.
(filename)
| 173 | |
| 174 | |
| 175 | def FlagsForFile(filename): |
| 176 | """This is the main entry point for YCM. Its interface is fixed. |
| 177 | |
| 178 | Args: |
| 179 | filename: (String) Path to source file being edited. |
| 180 | |
| 181 | Returns: |
| 182 | (Dictionary) |
| 183 | 'flags': (List of Strings) Command line flags. |
| 184 | 'do_cache': (Boolean) True if the result should be cached. |
| 185 | """ |
| 186 | v8_root = FindV8SrcFromFilename(filename) |
| 187 | v8_flags = GetClangCommandFromNinjaForFilename(v8_root, filename) |
| 188 | final_flags = flags + v8_flags |
| 189 | return { |
| 190 | 'flags': final_flags, |
| 191 | 'do_cache': True |
| 192 | } |
| 193 | |
| 194 | |
| 195 | def Settings(**kwargs): |
no test coverage detected
searching dependent graphs…