aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDevon Loehr <DKLoehr@users.noreply.github.com>2025-06-13 10:29:42 -0400
committerGitHub <noreply@github.com>2025-06-13 10:29:42 -0400
commit9670e09d0eac596fba6bf03ef1a6f3229dddee46 (patch)
treeb3f0b0d1a734143b8478a301fb334fa6ccdaaae6 /clang/lib/CodeGen/CodeGenFunction.cpp
parent82911f188be7ce7cb0a04b7fd648ea8b4aad2e59 (diff)
downloadllvm-9670e09d0eac596fba6bf03ef1a6f3229dddee46.zip
llvm-9670e09d0eac596fba6bf03ef1a6f3229dddee46.tar.gz
llvm-9670e09d0eac596fba6bf03ef1a6f3229dddee46.tar.bz2
Enable unique-object-duplication warning for windows (#143537)
Followup to #125526. This expands the logic of the unique-object-duplication warning so that it also works for windows code. For the most part, the logic is unchanged, merely substituting "has no import/export annotation" in place of "has hidden visibility". However, there are some small inconsistencies between the two; namely, visibility is propagated through nested classes, while import/export annotations aren't. This PR: 1. Updates the logic for the warning to account for the differences between posix and windows 2. Changes the warning message and documentation appropriately 3. Updates the tests to cover windows, and adds new test cases for the places where behavior differs. This PR was tested by building chromium (cross compiling linux->windows) with the changes in place. After accounting for the differences in semantics, no new warnings were discovered.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions