Skip to content

Commit 72948cb

Browse files
committed
C++: Remove all cached tags.
1 parent 5653847 commit 72948cb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

cpp/ql/lib/semmle/code/cpp/headers/PreprocBlock.qll

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import cpp
1010
/**
1111
* Gets the line of the `ix`th `PreprocessorBranchDirective` in file `f`.
1212
*/
13-
cached
1413
private int getPreprocLineFromIndex(File f, int ix) {
1514
result =
1615
rank[ix](PreprocessorBranchDirective g | g.getFile() = f | g.getLocation().getStartLine())
@@ -70,26 +69,22 @@ class PreprocessorBlock extends @element {
7069
/**
7170
* Gets the file this `PreprocessorBlock` is located in.
7271
*/
73-
cached
7472
File getFile() { result = mkElement(this).getFile() }
7573

7674
/**
7775
* Gets the start line number of this `PreprocessorBlock`.
7876
*/
79-
cached
8077
int getStartLine() { result = mkElement(this).getLocation().getStartLine() }
8178

8279
/**
8380
* Gets the end line number of this `PreprocessorBlock`.
8481
*/
85-
cached
8682
int getEndLine() {
8783
result = mkElement(this).(File).getMetrics().getNumberOfLines() or
8884
result =
8985
mkElement(this).(PreprocessorBranchDirective).getNext().getLocation().getStartLine() - 1
9086
}
9187

92-
cached
9388
private PreprocessorBlock getParentInternal() {
9489
// find the `#ifdef` corresponding to this block and the
9590
// PreprocessorBranchDirective `prev` that came directly

0 commit comments

Comments
 (0)