aboutsummaryrefslogtreecommitdiffstats
path: root/tests/locators
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@digia.com>2013-08-26 18:17:52 +0200
committerNikolai Kosjar <nikolai.kosjar@digia.com>2013-08-29 08:27:53 +0200
commita06da47d5b74f9d680b2201e218c1df87f023faa (patch)
tree1ee4a01dc77978050302affb1d7259b9d5590511 /tests/locators
parent853fcf3c437551ea010cce6404bbd47b07c30245 (diff)
Locator: Allow to filter for path in BaseFileFilter
If the input contains a path separator, the input is matched against the file path. Otherwise, as before, the input is matched against the file name. This affects AllProjectsFilter, CurrentProjectFilter and DirectoryFilter. Usage Examples: "src/*main.cpp" "cppedtior/" Change-Id: I8bc55642b388a8f8e1d7a949f80bbe1abc41ae3c Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'tests/locators')
-rw-r--r--tests/locators/testdata_basic/file.cpp1
-rw-r--r--tests/locators/testdata_basic/main.cpp1
-rw-r--r--tests/locators/testdata_basic/subdir/main.cpp1
3 files changed, 3 insertions, 0 deletions
diff --git a/tests/locators/testdata_basic/file.cpp b/tests/locators/testdata_basic/file.cpp
new file mode 100644
index 0000000000..2db0756354
--- /dev/null
+++ b/tests/locators/testdata_basic/file.cpp
@@ -0,0 +1 @@
+// Copyright header
diff --git a/tests/locators/testdata_basic/main.cpp b/tests/locators/testdata_basic/main.cpp
new file mode 100644
index 0000000000..2db0756354
--- /dev/null
+++ b/tests/locators/testdata_basic/main.cpp
@@ -0,0 +1 @@
+// Copyright header
diff --git a/tests/locators/testdata_basic/subdir/main.cpp b/tests/locators/testdata_basic/subdir/main.cpp
new file mode 100644
index 0000000000..2db0756354
--- /dev/null
+++ b/tests/locators/testdata_basic/subdir/main.cpp
@@ -0,0 +1 @@
+// Copyright header