diff --git a/clang-tools-extra/clangd/quality/CompletionModelCodegen.py b/clang-tools-extra/clangd/quality/CompletionModelCodegen.py --- a/clang-tools-extra/clangd/quality/CompletionModelCodegen.py +++ b/clang-tools-extra/clangd/quality/CompletionModelCodegen.py @@ -145,6 +145,7 @@ return """#ifndef %s #define %s #include +#include "llvm/Support/Compiler.h" %s class %s { @@ -160,6 +161,7 @@ friend float Evaluate(const %s&); }; +LLVM_NO_SANITIZE("memory") float Evaluate(const %s&); %s #endif // %s