Because of the ancient compiler support we cannot use
std::make_reverse_iterator. If we support newer compilers we can revert
this patch.
Change-Id: I9b20ab1e53a0e9784b0455eafbbfd966797ad91e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
We need the generated UI header but we don't have a build directory. So we
provide clang with in memory represations of the file.
Change-Id: Ie9db97bbea2222b0203a0457baa1f1fc7ad97213
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Using llvm_config --cxxflags can be potential dangerous. We should test
every configuration if it is compiling. It has the advantage that we don't
need to care anymore about incompatible flags to the used clang version.
Change-Id: I3bbddb1935dca9896c64ebafd1fbe72840db8bd4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Clang query is mechanism to use AST matcher to search for code. Think
about regular expression but in the context of AST. So you get a semantic
search tool for C++.
Change-Id: I72e882c5b53a0c52f352a3664847c4c3e4f6fc2e
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Only MinGW gcc defines WIN32, MSVC compiler does not. It's
also defined by qmake (msvc-desktop.conf), but not by qbs ...
Let's just use _WIN32, that's defined everywhere.
Change-Id: I8342a70498be54a965dcf7fae63eaf406aaa3c04
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Under windows you cannot mix debug and release builds. So we require that
clang is build as debug if the creator is build in debug.
Change-Id: Ie46a1f13d83a7afbf81129ed75d0519fa9f5268d
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
LLVM is normally not compiled with RTTI so we get link errors. We should
use "llvm-config --cxxflags" but before we can use it we should be sure
that we don't break something.
Change-Id: If45afcd625273230960a2c2065877f2512a53209
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Actually we maybe should use llvm-config --cxxflags but before we do
that we should evaluate possible compile breaks.
Change-Id: I534605c6f61217bfe985bef22af7d1dc9ac79637
Reviewed-by: Eike Ziller <eike.ziller@qt.io>