summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpppointerdeclarationformatter.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2013-09-27 10:44:32 +0200
committerEike Ziller <eike.ziller@digia.com>2013-09-27 10:44:32 +0200
commit63ff7452137958215988d9f2f6066de955500be0 (patch)
treed645a26ae9db68cdbf37e9fd997a221c81eea008 /src/plugins/cpptools/cpppointerdeclarationformatter.cpp
parent19c735a4912487e8038f08ea0b617ccce62cd1a3 (diff)
parenta12a9f491cb31ff5c22f1051bb22ccfef6c65217 (diff)
downloadqt-creator-63ff7452137958215988d9f2f6066de955500be0.tar.gz
Merge remote-tracking branch 'origin/2.8'
Conflicts: src/libs/extensionsystem/pluginmanager.cpp src/libs/extensionsystem/pluginspec.cpp src/plugins/coreplugin/basefilewizard.cpp src/plugins/coreplugin/coreplugin.pro src/plugins/coreplugin/coreplugin.qbs src/plugins/coreplugin/editormanager/ieditor.cpp src/plugins/coreplugin/externaltool.cpp src/plugins/coreplugin/icore.cpp src/plugins/cpptools/cppmodelmanager.cpp src/plugins/fakevim/fakevimhandler.cpp src/plugins/find/ifindfilter.cpp src/plugins/projectexplorer/buildstep.cpp src/plugins/projectexplorer/devicesupport/idevice.cpp src/plugins/projectexplorer/runconfiguration.cpp src/plugins/vcsbase/vcsbaseeditor.cpp tests/system/suite_debugger/tst_simple_analyze/test.py Change-Id: I11dc9e60bfc14bad4f8af747d041fc7678a07c17
Diffstat (limited to 'src/plugins/cpptools/cpppointerdeclarationformatter.cpp')
-rw-r--r--src/plugins/cpptools/cpppointerdeclarationformatter.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/plugins/cpptools/cpppointerdeclarationformatter.cpp b/src/plugins/cpptools/cpppointerdeclarationformatter.cpp
index 6040bae7f7..53480f9b70 100644
--- a/src/plugins/cpptools/cpppointerdeclarationformatter.cpp
+++ b/src/plugins/cpptools/cpppointerdeclarationformatter.cpp
@@ -51,7 +51,7 @@
using namespace CppTools;
/*!
- \brief Skip not type relevant specifiers and return the index of the
+ Skips specifiers that are not type relevant and returns the index of the
first specifier token which is not followed by __attribute__
((T___ATTRIBUTE__)).
@@ -60,17 +60,20 @@ using namespace CppTools;
Consider these cases:
- static char *s = 0;
- typedef char *s cp;
- __attribute__((visibility("default"))) char *f();
+ \list
+ \li \c {static char *s = 0;}
+ \li \c {typedef char *s cp;}
+ \li \c {__attribute__((visibility("default"))) char *f();}
+ \endlist
- For all cases we want to skip all the not type relevant specifer
+ For all these cases we want to skip all the specifiers that are not type
+ relevant
(since these are not part of the type and thus are not rewritten).
- \param list The specifier list to iterate
- \param translationUnit The TranslationUnit
- \param endToken Do not check further than this token
- \param found Output parameter, must not be 0.
+ \a list is the specifier list to iterate and \a translationUnit is the
+ translation unit.
+ \a endToken is the last token to check.
+ \a found is an output parameter that must not be 0.
*/
static unsigned firstTypeSpecifierWithoutFollowingAttribute(
SpecifierListAST *list, TranslationUnit *translationUnit, unsigned endToken, bool *found)
@@ -363,11 +366,8 @@ void PointerDeclarationFormatter::processIfWhileForStatement(ExpressionAST *expr
}
/*!
- \brief Do some further checks and rewrite the symbol's type and
- name into the given range
-
- \param symbol the symbol to be rewritten
- \param range the substitution range in the file
+ Performs some further checks and rewrites the type and name of \a symbol
+ into the substitution range in the file specified by \a tokenRange.
*/
void PointerDeclarationFormatter::checkAndRewrite(DeclaratorAST *declarator,
Symbol *symbol,