https://bugs.llvm.org/show_bug.cgi?id=33564

Eli Friedman <efrie...@codeaurora.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX
                 CC|                            |efrie...@codeaurora.org

--- Comment #1 from Eli Friedman <efrie...@codeaurora.org> ---
_Thread_local is reserved in C99, so we don't need a -pedantic warning.
(Quoting the standard: "All identifiers that begin with an underscore and
either an uppercase letter or another underscore are always reserved for any
use.")

More generally, clang doesn't have a flag to emit warnings about code which
uses clang extensions, as long as those extensions are allowed by the C or C++
standard.  We haven't found any real use for warnings like that; the best way
to ensure your code is portable is to compile it with the compilers you care
about.

If you want to write your own warnings, you can use clang-tidy
(http://clang.llvm.org/extra/clang-tidy/).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to