To get MS-style inline assembly, we need to link in the various backends. Some other clang tools already do this, and this issue has been raised with clang-tidy several times, indicating there is sufficient desire to make this work. Differential Revision: https://reviews.llvm.org/D38549 llvm-svn: 316246
10 lines
242 B
C++
10 lines
242 B
C++
// REQUIRES: system-windows
|
|
// RUN: %check_clang_tidy %s hicpp-no-assembler %t
|
|
|
|
void f() {
|
|
_asm {
|
|
mov al, 2;
|
|
// CHECK-MESSAGES: :[[@LINE-2]]:3: warning: do not use inline assembler in safety-critical code [hicpp-no-assembler]
|
|
}
|
|
}
|