Skip to content

Commit 215b881

Browse files
author
jantje
committed
#1297 Do not parse headers when searchi!ng for headers
Caused a nearly lock up on my system with the library exclusion filters not set
1 parent 00b99c9 commit 215b881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io.sloeber.core/src/io/sloeber/core/tools/PdePreprocessor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private static String extendHeaderForFile(String header, IIndex index, ITranslat
210210
String localHeader = header;
211211
// Locate All lines that are extern "C"
212212
HashMap<Integer, Integer> externCLines = new HashMap<>();
213-
IASTTranslationUnit astTuTest = tu.getAST(index, 0);
213+
IASTTranslationUnit astTuTest = tu.getAST(index, ITranslationUnit.AST_SKIP_ALL_HEADERS);
214214
IASTDeclaration[] topDeclaratons = astTuTest.getDeclarations();
215215
for (IASTDeclaration curTopDeclaration : topDeclaratons) {
216216

0 commit comments

Comments
 (0)