summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpppointerdeclarationformatter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cpptools/cpppointerdeclarationformatter.h')
-rw-r--r--src/plugins/cpptools/cpppointerdeclarationformatter.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/plugins/cpptools/cpppointerdeclarationformatter.h b/src/plugins/cpptools/cpppointerdeclarationformatter.h
index cc0e1b8d7f..0419f8257e 100644
--- a/src/plugins/cpptools/cpppointerdeclarationformatter.h
+++ b/src/plugins/cpptools/cpppointerdeclarationformatter.h
@@ -27,18 +27,13 @@
**
****************************************************************************/
-#ifndef CPPPOINTERFORMATTER_H
-#define CPPPOINTERFORMATTER_H
+#ifndef CPPPOINTERDECLARATIONFORMATTER_H
+#define CPPPOINTERDECLARATIONFORMATTER_H
#include "cpptools_global.h"
+#include "cpprefactoringchanges.h"
-#include <AST.h>
-#include <ASTVisitor.h>
-#include <Overview.h>
-#include <Symbols.h>
-
-#include <cpptools/cpprefactoringchanges.h>
-#include <utils/changeset.h>
+#include <cplusplus/Overview.h>
namespace CppTools {
@@ -51,7 +46,8 @@ typedef Utils::ChangeSet::Range Range;
/*!
\class CppTools::PointerDeclarationFormatter
- \brief Rewrite pointer or reference declarations accordingly to an Overview.
+ \brief The PointerDeclarationFormatter class rewrites pointer or reference
+ declarations to an Overview.
The following constructs are supported:
\list
@@ -115,7 +111,8 @@ private:
};
void processIfWhileForStatement(ExpressionAST *expression, Symbol *symbol);
- void checkAndRewrite(Symbol *symbol, TokenRange range, unsigned charactersToRemove = 0);
+ void checkAndRewrite(DeclaratorAST *declarator, Symbol *symbol, TokenRange range,
+ unsigned charactersToRemove = 0);
QString rewriteDeclaration(FullySpecifiedType type, const Name *name) const;
void printCandidate(AST *ast);
@@ -128,4 +125,4 @@ private:
} // namespace CppTools
-#endif // CPPPOINTERFORMATTER_H
+#endif // CPPPOINTERDECLARATIONFORMATTER_H