mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Performance improvement for indexer.
This commit is contained in:
parent
d1725e3cdd
commit
663b1538e0
1 changed files with 8 additions and 2 deletions
|
@ -144,7 +144,10 @@ public class PDOMMacro implements IIndexMacro, IASTFileLocation {
|
|||
super(name, null);
|
||||
}
|
||||
public char[] getExpansion() {
|
||||
return getMacroExpansion();
|
||||
if (expansion == null) {
|
||||
expansion= getMacroExpansion();
|
||||
}
|
||||
return expansion;
|
||||
}
|
||||
public IASTFileLocation getFileLocation() {
|
||||
return PDOMMacro.this;
|
||||
|
@ -168,7 +171,10 @@ public class PDOMMacro implements IIndexMacro, IASTFileLocation {
|
|||
super(name, null, arglist);
|
||||
}
|
||||
public char[] getExpansion() {
|
||||
return getMacroExpansion();
|
||||
if (expansion == null) {
|
||||
expansion= getMacroExpansion();
|
||||
}
|
||||
return expansion;
|
||||
}
|
||||
public IASTFileLocation getFileLocation() {
|
||||
return PDOMMacro.this;
|
||||
|
|
Loading…
Add table
Reference in a new issue