summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/SortJavaScriptImports.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-09-20 07:22:00 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-09-20 07:22:00 +0000
commit405e2dbf3767586ab06a8506a6f5754aeb5a613d (patch)
tree7cd5b3ac40b4dd5c57236b1e89445fdec4dc5352 /clang/lib/Format/SortJavaScriptImports.cpp
parent8a65209d0ba5f4553fa1eba89e2e2fcf43c9c01d (diff)
downloadbcm5719-llvm-405e2dbf3767586ab06a8506a6f5754aeb5a613d.tar.gz
bcm5719-llvm-405e2dbf3767586ab06a8506a6f5754aeb5a613d.zip
Implement C++ [basic.link]p8.
If a function or variable has a type with no linkage (and is not extern "C"), any use of it requires a definition within the same translation unit; the idea is that it is not possible to define the entity elsewhere, so any such use is necessarily an error. There is an exception, though: some types formally have no linkage but nonetheless can be referenced from other translation units (for example, this happens to anonymous structures defined within inline functions). For entities with those types, we suppress the diagnostic except under -pedantic. llvm-svn: 313729
Diffstat (limited to 'clang/lib/Format/SortJavaScriptImports.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud