forked from qt-creator/qt-creator
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 <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -46,9 +46,11 @@ CppTodoItemsScanner::CppTodoItemsScanner(const KeywordList &keywordList, QObject
|
||||
|
||||
connect(modelManager, &CppTools::CppModelManager::documentUpdated,
|
||||
this, &CppTodoItemsScanner::documentUpdated, Qt::DirectConnection);
|
||||
|
||||
setParams(keywordList);
|
||||
}
|
||||
|
||||
void CppTodoItemsScanner::keywordListChanged()
|
||||
void CppTodoItemsScanner::scannerParamsChanged()
|
||||
{
|
||||
// We need to rescan everything known to the code model
|
||||
// TODO: It would be nice to only tokenize the source files, not update the code model entirely.
|
||||
@@ -72,7 +74,6 @@ void CppTodoItemsScanner::documentUpdated(CPlusPlus::Document::Ptr doc)
|
||||
void CppTodoItemsScanner::processDocument(CPlusPlus::Document::Ptr doc)
|
||||
{
|
||||
QList<TodoItem> itemList;
|
||||
|
||||
CPlusPlus::TranslationUnit *translationUnit = doc->translationUnit();
|
||||
|
||||
for (unsigned i = 0; i < translationUnit->commentCount(); ++i) {
|
||||
|
||||
Reference in New Issue
Block a user