diff options
author | Denis Kormalev <[email protected]> | 2015-05-18 22:47:20 +0300 |
---|---|---|
committer | Denis Kormalev <[email protected]> | 2015-06-01 15:45:25 +0000 |
commit | a429ef3d50242e871237402a2a70da9b77bb1509 (patch) | |
tree | 883fe4c3d9d19dac2eada0c8e1e3394b09baac6e /src/plugins/todo/todoitemsscanner.cpp | |
parent | 4f5a02d5967871c18d1bce0321a1342af08155b4 (diff) |
TODO plugin: Add file patterns to exclude from parsing
Additional list of regular expressions added to TODO plugin settings
to allow set patterns to be excluded from file list to parse by this plugin.
Change-Id: I718f111ac7592557a6aa86865283468c53d58078
Reviewed-by: Nikolai Kosjar <[email protected]>
Diffstat (limited to 'src/plugins/todo/todoitemsscanner.cpp')
-rw-r--r-- | src/plugins/todo/todoitemsscanner.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/plugins/todo/todoitemsscanner.cpp b/src/plugins/todo/todoitemsscanner.cpp index 31826bb3c90..b8d1a3bbf28 100644 --- a/src/plugins/todo/todoitemsscanner.cpp +++ b/src/plugins/todo/todoitemsscanner.cpp @@ -39,25 +39,20 @@ namespace Todo { namespace Internal { TodoItemsScanner::TodoItemsScanner(const KeywordList &keywordList, QObject *parent) : - QObject(parent) + QObject(parent), m_keywordList(keywordList) { - setKeywordList(keywordList); } -void TodoItemsScanner::setKeywordList(const KeywordList &keywordList) +void TodoItemsScanner::setParams(const KeywordList &keywordList) { m_keywordList = keywordList; - keywordListChanged(); + scannerParamsChanged(); } -// Descendants can override and make a request for full rescan here if needed -void TodoItemsScanner::keywordListChanged() -{ -} // Descendants can use this to process comment lines void TodoItemsScanner::processCommentLine(const QString &fileName, const QString &comment, - unsigned lineNumber, QList<TodoItem> &outItemList) + unsigned lineNumber, QList<TodoItem> &outItemList) { LineParser parser(m_keywordList); QList<TodoItem> newItemList = parser.parse(comment); |