forked from qt-creator/qt-creator
C++ editor: Better control to stop the semantic highlighter
Done-by: Roberto Raggi Reviewed-by: Leandro Melo Reviewed-by: mae
This commit is contained in:
@@ -54,10 +54,18 @@
|
||||
#define CPLUSPLUS_CONTROL_H
|
||||
|
||||
#include "CPlusPlusForwardDeclarations.h"
|
||||
#include "ASTfwd.h"
|
||||
#include "Names.h"
|
||||
|
||||
namespace CPlusPlus {
|
||||
|
||||
class CPLUSPLUS_EXPORT TopLevelDeclarationProcessor
|
||||
{
|
||||
public:
|
||||
virtual ~TopLevelDeclarationProcessor() {}
|
||||
virtual bool processDeclaration(DeclarationAST *ast) = 0;
|
||||
};
|
||||
|
||||
class CPLUSPLUS_EXPORT Control
|
||||
{
|
||||
public:
|
||||
@@ -67,6 +75,9 @@ public:
|
||||
TranslationUnit *translationUnit() const;
|
||||
TranslationUnit *switchTranslationUnit(TranslationUnit *unit);
|
||||
|
||||
TopLevelDeclarationProcessor *topLevelDeclarationProcessor() const;
|
||||
void setTopLevelDeclarationProcessor(TopLevelDeclarationProcessor *processor);
|
||||
|
||||
DiagnosticClient *diagnosticClient() const;
|
||||
void setDiagnosticClient(DiagnosticClient *diagnosticClient);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user