Community
Participate
Working Groups
As we talked about, preprocessor nodes that are not in the correct place in the tree can cause the binary search to not find the node we are looking for.
This is the test that I've been using for this PR: #include <stdio.h> #define ONE int foo() { #ifdef ONE return 1; // select 1 and perform "Show IASTNode in DOM View" #else return 0; #endif }
Created attachment 25043 [details] fix for this PR Take a look at this PR as I think that it is a large improvement for finding the IASTNodes in the DOM AST View. Also, the only changes made are to the DOM AST View in the ui.tests.
Take a look at the attached patch. If you find any IASTNodes that can't be found in the DOM AST View which can be selected in the DOM AST View and have the proper corresponding text selected in the source code then there should probably be a separate bug raised for that example.
applied modified version of patch.