1
0
Fork 0
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:
Markus Schorn 2007-11-27 15:36:17 +00:00
parent d1725e3cdd
commit 663b1538e0

View file

@ -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;