[modules] Add a flag to disable the feature that permits conflicting...
[modules] Add a flag to disable the feature that permits conflicting redefinitions of internal-linkage symbols that are not visible. Such conflicts are an accident waiting to happen, and this feature conflicts with the desire to include existing headers into multiple modules and merge the results. (In an ideal world, it should not be possible to export internal linkage symbols from a module, but sadly the glibc and libstdc++ headers provide 'static inline' functions in a few cases.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240335 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/LangOptions.def 1 addition, 0 deletionsinclude/clang/Basic/LangOptions.def
- include/clang/Driver/CC1Options.td 4 additions, 0 deletionsinclude/clang/Driver/CC1Options.td
- include/clang/Sema/Sema.h 3 additions, 1 deletioninclude/clang/Sema/Sema.h
- lib/Frontend/CompilerInvocation.cpp 2 additions, 0 deletionslib/Frontend/CompilerInvocation.cpp
- lib/Sema/SemaDecl.cpp 9 additions, 5 deletionslib/Sema/SemaDecl.cpp
- test/Modules/submodules-merge-defs.cpp 6 additions, 1 deletiontest/Modules/submodules-merge-defs.cpp
Loading
Please register or sign in to comment