aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Frontend/CompilerInvocationTest.cpp
diff options
context:
space:
mode:
authorVScigolevs <vladimirs.scigolevs@zimperium.com>2024-12-13 13:24:31 +0200
committerGitHub <noreply@github.com>2024-12-13 12:24:31 +0100
commit84b0f0145887bbfe49fd4dc85490b14108a72cee (patch)
treef07315f933d5360915632be256d1ce20481a92c0 /clang/unittests/Frontend/CompilerInvocationTest.cpp
parent30cbd09f4b8f7e94663631f0240d11bb754ea25b (diff)
downloadllvm-84b0f0145887bbfe49fd4dc85490b14108a72cee.zip
llvm-84b0f0145887bbfe49fd4dc85490b14108a72cee.tar.gz
llvm-84b0f0145887bbfe49fd4dc85490b14108a72cee.tar.bz2
[clang-cl] Don't add implicit NoBuiltinAttr to deleted or defaulted functions (#119719)
In Clang `#pragma function` is implemented by adding an implicit NoBuiltin Attribute to all function definitions after the pragma. This (wrongly) includes also defaulted or deleted functions, which results in the error, shown in #116256. As this attribute has no effect on the deleted or defaulted functions, this commit fixes the previously mentioned issue by simply not adding the attribute in such cases. Fixes #116256
Diffstat (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp')
0 files changed, 0 insertions, 0 deletions