Skip to content

Commit 141a071

Browse files
samiraguiardanmar
authored andcommitted
* Added Clang-related flag to gui.pro
* Updated external lib location with PWD variable
1 parent ec21134 commit 141a071

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

gui/gui.pro

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ contains(LINKCORE, [yY][eE][sS]) {
1515
LIBS += -l../bin/cppcheck-core
1616
DEFINES += CPPCHECKLIB_IMPORT
1717
}
18-
LIBS += -L../externals
18+
LIBS += -L$$PWD/../externals
1919

2020
DESTDIR = .
2121
RCC_DIR = temp
@@ -149,3 +149,9 @@ win32 {
149149
contains(QMAKE_CC, gcc) {
150150
QMAKE_CXXFLAGS += -std=c++0x
151151
}
152+
153+
macx {
154+
contains(QMAKE_CXX, clang++) {
155+
QMAKE_CXXFLAGS += -std=c++11
156+
}
157+
}

lib/tokenize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2761,7 +2761,7 @@ void Tokenizer::setVarId()
27612761
}
27622762

27632763
// class members..
2764-
std::map<std::string, std::map<std::string, unsigned int>> varlist;
2764+
std::map<std::string, std::map<std::string, unsigned int> > varlist;
27652765
for (Token *tok = list.front(); tok; tok = tok->next()) {
27662766
if (Token::Match(tok, "namespace|class|struct %var% {|:")) {
27672767
const std::string &classname(tok->next()->str());

0 commit comments

Comments
 (0)