1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +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:
Jeff Johnston 2021-02-01 13:49:10 -05:00 committed by Marc-André Laperle
parent 8e3e8366c1
commit 2ec6d64b1b

View file

@ -179,7 +179,7 @@ public class CPreprocessor implements ILexerLog, IScanner, IAdaptable {
T checkFile(String path, boolean isHeuristicMatch, IncludeSearchPathElement onPath);
}
final private IIncludeFileTester<InternalFileContent> createCodeReaderTester = new IIncludeFileTester<InternalFileContent>() {
final private IIncludeFileTester<InternalFileContent> createCodeReaderTester = new IIncludeFileTester<>() {
@Override
public InternalFileContent checkFile(String path, boolean isHeuristicMatch, IncludeSearchPathElement onPath) {
final InternalFileContent fc;
@ -189,7 +189,7 @@ public class CPreprocessor implements ILexerLog, IScanner, IAdaptable {
try {
significantMacros = once.getSignificantMacros();
} catch (CoreException e) {
e.printStackTrace();
CCorePlugin.log(e);
}
fc = new InternalFileContent(path, InclusionKind.SKIP_PRAGMA_ONCE_FILE, significantMacros);
} 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
public IncludeResolution checkFile(String path, boolean isHeuristicMatch, IncludeSearchPathElement onPath) {
if (fFileContentProvider.getInclusionExists(path)) {