logic: Fixed relative paths not working Code::Blocks project files (issue #663)
* Index non-target files if no others available
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
* Click "Next"
|
||||
* Pick "Test.cbp" at "Code::Blocks Project"
|
||||
* Click "show source files" button
|
||||
* Validate "Source Files" list contains "src/main.cpp"
|
||||
* Validate "Source Files" list contains 2 files: "src/main.cpp", "src/test.cpp"
|
||||
* Click "OK"
|
||||
* Validate "Header Files & Directories to Index" contains "src" entry
|
||||
* Add "**/Foo.h" to "Excluded Files & Directories"
|
||||
@@ -24,7 +24,7 @@
|
||||
* Click "Cancel"
|
||||
* Run "2_update.sh"
|
||||
* Press "Refresh" button
|
||||
* Validate "Files to clear" shows "3"
|
||||
* Validate "Files to clear" shows "4"
|
||||
* Validate "source files to index" shows "1"
|
||||
* Click "Start"
|
||||
* Validate Project indexed without error
|
||||
|
||||
@@ -73,6 +73,10 @@
|
||||
<Unit filename="<source_path>/main.cpp">
|
||||
<Option target="Test"/>
|
||||
</Unit>
|
||||
<Unit filename="src/test.cpp">
|
||||
<Option target="Test"/>
|
||||
</Unit>
|
||||
<Unit filename="src/no_target.cpp" />
|
||||
<Unit filename="<source_path>/CMakeLists.txt">
|
||||
<Option virtualFolder="CMake Files\"/>
|
||||
</Unit>
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
void no_target()
|
||||
{
|
||||
int b = 7;
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
void test()
|
||||
{
|
||||
int a = 42;
|
||||
}
|
||||
Reference in New Issue
Block a user