mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 14:12:10 +02:00
Use correct translation unit filename for comparison
This commit is contained in:
parent
d404ce7775
commit
50f7176caa
1 changed files with 3 additions and 2 deletions
|
@ -90,7 +90,8 @@ public class CSourceViewerDecorationSupport
|
|||
if (fASTTranslationUnit == null && fTranslationUnit != null) {
|
||||
try {
|
||||
fParseTimeStamp = System.currentTimeMillis();
|
||||
fASTTranslationUnit = fTranslationUnit.getLanguage().getASTTranslationUnit(fTranslationUnit, ILanguage.AST_SKIP_IF_NO_BUILD_INFO | ILanguage.AST_SKIP_INDEXED_HEADERS);
|
||||
int style = ILanguage.AST_SKIP_IF_NO_BUILD_INFO | ILanguage.AST_SKIP_INDEXED_HEADERS;
|
||||
fASTTranslationUnit = fTranslationUnit.getLanguage().getASTTranslationUnit(fTranslationUnit, style);
|
||||
} catch (CoreException exc) {
|
||||
result = exc.getStatus();
|
||||
}
|
||||
|
@ -431,7 +432,7 @@ public class CSourceViewerDecorationSupport
|
|||
if (translationUnit == null) {
|
||||
return Collections.EMPTY_LIST;
|
||||
}
|
||||
String fileName = translationUnit.getContainingFilename();
|
||||
String fileName = translationUnit.getFilePath();
|
||||
if (fileName == null) {
|
||||
return Collections.EMPTY_LIST;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue