mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Bug 568957 - Missing significant macros on hdrs with pragma once syntax
- replace printStackTrace with CCorePlugin.log call Change-Id: I2eb5398cfbd3ebfbfe3ab02acaf40a748699902a
This commit is contained in:
parent
8e3e8366c1
commit
2ec6d64b1b
1 changed files with 3 additions and 3 deletions
|
@ -179,7 +179,7 @@ public class CPreprocessor implements ILexerLog, IScanner, IAdaptable {
|
||||||
T checkFile(String path, boolean isHeuristicMatch, IncludeSearchPathElement onPath);
|
T checkFile(String path, boolean isHeuristicMatch, IncludeSearchPathElement onPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
final private IIncludeFileTester<InternalFileContent> createCodeReaderTester = new IIncludeFileTester<InternalFileContent>() {
|
final private IIncludeFileTester<InternalFileContent> createCodeReaderTester = new IIncludeFileTester<>() {
|
||||||
@Override
|
@Override
|
||||||
public InternalFileContent checkFile(String path, boolean isHeuristicMatch, IncludeSearchPathElement onPath) {
|
public InternalFileContent checkFile(String path, boolean isHeuristicMatch, IncludeSearchPathElement onPath) {
|
||||||
final InternalFileContent fc;
|
final InternalFileContent fc;
|
||||||
|
@ -189,7 +189,7 @@ public class CPreprocessor implements ILexerLog, IScanner, IAdaptable {
|
||||||
try {
|
try {
|
||||||
significantMacros = once.getSignificantMacros();
|
significantMacros = once.getSignificantMacros();
|
||||||
} catch (CoreException e) {
|
} catch (CoreException e) {
|
||||||
e.printStackTrace();
|
CCorePlugin.log(e);
|
||||||
}
|
}
|
||||||
fc = new InternalFileContent(path, InclusionKind.SKIP_PRAGMA_ONCE_FILE, significantMacros);
|
fc = new InternalFileContent(path, InclusionKind.SKIP_PRAGMA_ONCE_FILE, significantMacros);
|
||||||
} else {
|
} else {
|
||||||
|
@ -213,7 +213,7 @@ public class CPreprocessor implements ILexerLog, IScanner, IAdaptable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final private IIncludeFileTester<IncludeResolution> createPathTester = new IIncludeFileTester<IncludeResolution>() {
|
final private IIncludeFileTester<IncludeResolution> createPathTester = new IIncludeFileTester<>() {
|
||||||
@Override
|
@Override
|
||||||
public IncludeResolution checkFile(String path, boolean isHeuristicMatch, IncludeSearchPathElement onPath) {
|
public IncludeResolution checkFile(String path, boolean isHeuristicMatch, IncludeSearchPathElement onPath) {
|
||||||
if (fFileContentProvider.getInclusionExists(path)) {
|
if (fFileContentProvider.getInclusionExists(path)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue