Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
a8fc1f48
Commit
a8fc1f48
authored
Apr 23, 2010
by
Erik Verbruggen
Browse files
Fixed icheck build.
parent
25837759
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
src/plugins/cpptools/cppmodelmanager.cpp
View file @
a8fc1f48
...
...
@@ -622,11 +622,12 @@ void CppPreprocessor::sourceNeeded(QString &fileName, IncludeType type, unsigned
(
void
)
switchDocument
(
previousDoc
);
#else
(
void
)
switchDocument
(
previousDoc
);
Document
::
CheckMode
mode
=
Document
::
FastCheck
;
mode
=
Document
::
FullCheck
;
doc
->
parse
();
doc
->
check
(
mode
);
(
void
)
switchDocument
(
previousDoc
);
#endif
}
...
...
tests/auto/icheckbuild/ichecklib.pri
View file @
a8fc1f48
# ----------------------------------------------------
# This file is generated by the Qt Visual Studio Add-in.
# ------------------------------------------------------
HEADERS += \
$$REL_PATH_TO_SRC/shared/cplusplus/AST.h \
$$REL_PATH_TO_SRC/shared/cplusplus/ASTMatcher.h \
...
...
@@ -57,7 +58,8 @@ HEADERS += \
$$REL_PATH_TO_SRC/shared/cplusplus/TypeMatcher.h \
$$REL_PATH_TO_SRC/libs/cplusplus/TypePrettyPrinter.h \
$$REL_PATH_TO_SRC/shared/cplusplus/TypeVisitor.h \
$$REL_PATH_TO_SRC/plugins/cpptools/cpptools_global.h
$$REL_PATH_TO_SRC/plugins/cpptools/cpptools_global.h \
$$REL_PATH_TO_SRC/shared/cplusplus/QtContextKeywords.h
SOURCES += \
$$REL_PATH_TO_SRC/shared/cplusplus/AST.cpp \
$$REL_PATH_TO_SRC/shared/cplusplus/ASTMatch0.cpp \
...
...
@@ -113,4 +115,5 @@ SOURCES += \
$$REL_PATH_TO_SRC/shared/cplusplus/Type.cpp \
$$REL_PATH_TO_SRC/shared/cplusplus/TypeMatcher.cpp \
$$REL_PATH_TO_SRC/libs/cplusplus/TypePrettyPrinter.cpp \
$$REL_PATH_TO_SRC/shared/cplusplus/TypeVisitor.cpp
$$REL_PATH_TO_SRC/shared/cplusplus/TypeVisitor.cpp \
$$REL_PATH_TO_SRC/shared/cplusplus/QtContextKeywords.cpp
tests/auto/icheckbuild/parsemanager.cpp
View file @
a8fc1f48
This diff is collapsed.
Click to expand it.
tests/auto/icheckbuild/parsemanager.h
View file @
a8fc1f48
...
...
@@ -61,11 +61,14 @@
#ifndef PARSEMANAGER_H
#define PARSEMANAGER_H
#include "cplusplus/CppDocument.h"
#include "ASTfwd.h"
#include "FullySpecifiedType.h"
#include <QObject>
#include <QList>
#include <QFuture>
#include <QStringList>
#include "cplusplus/CppDocument.h"
#include <QFile>
namespace
CppTools
{
...
...
@@ -75,15 +78,6 @@ namespace CppTools{
}
namespace
CPlusPlus
{
class
TranslationUnit
;
class
AST
;
class
ClassSpecifierAST
;
class
QPropertyDeclarationAST
;
class
QDeclareFlagsDeclarationAST
;
class
EnumSpecifierAST
;
class
Function
;
class
EnumeratorAST
;
class
CLASSLISTITEM
{
public:
...
...
@@ -106,6 +100,7 @@ namespace CPlusPlus {
CPlusPlus
::
Function
*
function
;
bool
isEqualTo
(
FUNCTIONITEM
*
cpfct
,
bool
ignoreName
=
true
);
FUNCTIONITEM
()
{
highestlevelclass
=
0
;
...
...
@@ -119,15 +114,16 @@ namespace CPlusPlus {
public:
const
CLASSLISTITEM
*
highestlevelclass
;
QStringList
classWichIsNotFound
;
QPropertyDeclarationAST
*
ast
;
Q
t
PropertyDeclarationAST
*
ast
;
CPlusPlus
::
TranslationUnit
*
trlUnit
;
bool
readdefined
;
FullySpecifiedType
type
;
ExpressionAST
*
readAst
;
FUNCTIONITEM
*
readFct
;
bool
writedefined
;
ExpressionAST
*
writeAst
;
FUNCTIONITEM
*
writeFct
;
bool
resetdefined
;
ExpressionAST
*
resetAst
;
FUNCTIONITEM
*
resetFct
;
bool
notifydefined
;
ExpressionAST
*
notifyAst
;
FUNCTIONITEM
*
notifyFct
;
bool
foundalldefinedfct
;
...
...
@@ -137,25 +133,26 @@ namespace CPlusPlus {
highestlevelclass
=
0
;
ast
=
0
;
trlUnit
=
0
;
read
defined
=
false
;
read
Ast
=
0
;
readFct
=
0
;
write
defined
=
false
;
write
Ast
=
0
;
writeFct
=
0
;
reset
defined
=
false
;
reset
Ast
=
0
;
resetFct
=
0
;
notify
defined
=
false
;
notify
Ast
=
0
;
notifyFct
=
0
;
foundalldefinedfct
=
false
;
}
static
PROPERTYITEM
*
create
(
QtPropertyDeclarationAST
*
ast
,
const
CLASSLISTITEM
*
clazz
);
};
class
QENUMITEM
{
public:
const
CLASSLISTITEM
*
highestlevelclass
;
CPlusPlus
::
TranslationUnit
*
trlUnit
;
QStringList
classWichIsNotFound
;
EnumeratorAST
*
ast
;
QString
name
;
//an item in this list will be shown like:
//EnumName.EnumItemName.Value
//ConnectionState.disconnected.0
...
...
@@ -166,8 +163,6 @@ namespace CPlusPlus {
QENUMITEM
()
{
highestlevelclass
=
0
;
trlUnit
=
0
;
ast
=
0
;
values
.
clear
();
foundallenums
=
true
;
}
...
...
@@ -193,9 +188,8 @@ namespace CPlusPlus {
{
public:
const
CLASSLISTITEM
*
highestlevelclass
;
CPlusPlus
::
TranslationUnit
*
trlUnit
;
const
Name
*
name
;
QStringList
classWichIsNotFound
;
EnumeratorAST
*
ast
;
QStringList
enumvalues
;
bool
foundallenums
;
...
...
@@ -203,8 +197,6 @@ namespace CPlusPlus {
QFLAGITEM
()
{
highestlevelclass
=
0
;
trlUnit
=
0
;
ast
=
0
;
enumvalues
.
clear
();
foundallenums
=
true
;
}
...
...
@@ -216,7 +208,7 @@ namespace CPlusPlus {
const
CLASSLISTITEM
*
highestlevelclass
;
CPlusPlus
::
TranslationUnit
*
trlUnit
;
QStringList
classWichIsNotFound
;
Q
Declare
FlagsDeclarationAST
*
ast
;
Q
t
FlagsDeclarationAST
*
ast
;
QDECLAREFLAGSITEM
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment