[cfe-users] clang-tidy selects toolchain?

2018-06-20 Thread 张亚霏
As is known, clang can select another toolchain through: clang --gcc-toolchain=/opt/gcc-7.3.0 -v clang++ --gcc-toolchain=/opt/gcc-7.3.0 �Cv Is there an equivalent option for clang-tidy? Thanks. ___ cfe-users mailing list cfe-users@lists.llvm.org http://

[cfe-users] Unexpected (IMO) constant-conversion warning

2018-06-20 Thread Szymon Zimnowoda via cfe-users
Hello, consider following code: https://godbolt.org/g/UN8xTy I do not understand, why overflow warning is here, there is no explicite int in this code. When removing constexpr, warning disappears, when changing to: static constexpr uint8_t b = uint8_t{~a}; warning

Re: [cfe-users] clang-tidy selects toolchain?

2018-06-20 Thread Jonas Toth via cfe-users
I dont think so. What do you want to achieve? Clang-tidy will just build the AST from Code and do its analysis on it. I do not see a reason for a different toolchain. Am 19.06.2018 um 11:30 schrieb kimmyzhang(张亚霏) via cfe-users: > > As is known, clang can select another toolchain through: > > cla