summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/Control.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/cplusplus/Control.h')
-rw-r--r--src/shared/cplusplus/Control.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Control.h b/src/shared/cplusplus/Control.h
index beb18aab4f..323740b742 100644
--- a/src/shared/cplusplus/Control.h
+++ b/src/shared/cplusplus/Control.h
@@ -55,6 +55,18 @@
CPLUSPLUS_BEGIN_HEADER
CPLUSPLUS_BEGIN_NAMESPACE
+class CPLUSPLUS_EXPORT MacroResolver
+{
+ MacroResolver(const MacroResolver &other);
+ void operator = (const MacroResolver &other);
+
+public:
+ MacroResolver();
+ virtual ~MacroResolver();
+
+ virtual bool isMacro(TranslationUnit *unit, unsigned tokenIndex) const = 0;
+};
+
class CPLUSPLUS_EXPORT Control
{
public:
@@ -64,6 +76,9 @@ public:
TranslationUnit *translationUnit() const;
TranslationUnit *switchTranslationUnit(TranslationUnit *unit);
+ MacroResolver *macroResolver() const;
+ void setMacroResolver(MacroResolver *macroResolver);
+
DiagnosticClient *diagnosticClient() const;
void setDiagnosticClient(DiagnosticClient *diagnosticClient);