Clang-tidy fails when parsing MSVC inline assembly statements. The native target and asm parser aren't initialized.
The following patch is fixing the issue by using the same code than clang-check.
The tool clang-check has the following code in main to initialize the required components.
// Initialize targets for clang module support. llvm::InitializeAllTargets(); llvm::InitializeAllTargetMCs(); llvm::InitializeAllAsmPrinters(); llvm::InitializeAllAsmParsers();
Apparently, it is sufficient to initialize the native target and the asm parser.