[all-commits] [llvm/llvm-project] fb79f8: [libc++][modules] Fixes clang-tidy exports. (#76288)
Mark de Wever via All-commits
all-commits at lists.llvm.org
Tue Jan 16 23:27:12 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fb79f80bf6bb7d70d0446894d8c531d584012adf
https://github.com/llvm/llvm-project/commit/fb79f80bf6bb7d70d0446894d8c531d584012adf
Author: Mark de Wever <koraq at xs4all.nl>
Date: 2024-01-17 (Wed, 17 Jan 2024)
Changed paths:
M libcxx/test/tools/clang_tidy_checks/header_exportable_declarations.cpp
Log Message:
-----------
[libc++][modules] Fixes clang-tidy exports. (#76288)
As suggested in #71438 we should use
export import std;
in the std.compat module.
Using this exports some named declarations from functions and records,
adding them to the global namespace. Clang correctly does not export
these and it's an issue in the declaration filtering. Declarations in
function or record context are not considered a global named
declaration.
More information about the All-commits
mailing list