C++: Fix formatting

This commit is contained in:
Jason Reed
2020-04-22 12:24:15 -04:00
parent 3b7fecab93
commit b341f768de
3 changed files with 6 additions and 9 deletions

View File

@@ -132,7 +132,8 @@ private predicate constructorCallTypeMention(ConstructorCall cc, TypeMention tm)
* - `"X"` for macro accesses
* - `"I"` for import / include directives
*/
cached Top definitionOf(Top e, string kind) {
cached
Top definitionOf(Top e, string kind) {
(
// call -> function called
kind = "M" and

View File

@@ -11,11 +11,8 @@ import definitions
external string selectedSourceFile();
cached File getEncodedFile(string name) {
result.getAbsolutePath().replaceAll(":", "_") = name
}
cached
File getEncodedFile(string name) { result.getAbsolutePath().replaceAll(":", "_") = name }
from Top e, Top def, string kind
where def = definitionOf(e, kind) and e.getFile() = getEncodedFile(selectedSourceFile())

View File

@@ -11,9 +11,8 @@ import definitions
external string selectedSourceFile();
cached File getEncodedFile(string name) {
result.getAbsolutePath().replaceAll(":", "_") = name
}
cached
File getEncodedFile(string name) { result.getAbsolutePath().replaceAll(":", "_") = name }
from Top e, Top def, string kind
where def = definitionOf(e, kind) and def.getFile() = getEncodedFile(selectedSourceFile())