2d40d9e3bd6638399260332d8c7a98ac715f7b0d |
|
06-Sep-2012 |
Fariborz Jahanian <fjahanian@apple.com> |
c: make __attribute__((unused)) transitive. Don't warn if annotated decl is used inside another unused. // rdar://12233989 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163329 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/warn-unused-function.c
|
6b6b42aed07726178f61954ac6e51f47da00275c |
|
19-Apr-2011 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
We regard a function as 'unused' from the codegen perspective, so our warnings diverge from gcc's unused warnings which don't get emitted if the function is referenced even in an unevaluated context (e.g. in templates, sizeof, etc.). Also, saying that a function is 'unused' because it won't get codegen'ed is somewhat misleading. - Don't emit 'unused' warnings for functions that are referenced in any part of the user's code. - A warning that an internal function/variable won't get emitted is useful though, so introduce -Wunneeded-internal-declaration which will warn if a function/variable with internal linkage is not "needed" ('used' from the codegen perspective), e.g: static void foo() { } template <int> void bar() { foo(); } test.cpp:1:13: warning: function 'foo' is not needed and will not be emitted static void foo() { } ^ Addresses rdar://8733476. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129794 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/warn-unused-function.c
|
ae3038c5e8bfce47337e83aeb253256633fbb701 |
|
04-Dec-2010 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Mark functions referenced by 'cleanup' attribute as used. Fixes rdar://8728293 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120872 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/warn-unused-function.c
|
58b5259e959f42823cc93f66da1499723eae366c |
|
25-Aug-2010 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Recursive functions should be marked when used from another function. Fixes http://llvm.org/PR7923. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112045 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/warn-unused-function.c
|
bbc6454bb98d6a6ecbaafa715222c5db834307f2 |
|
15-Aug-2010 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Commit improved version of 111026 & 111027. Unused warnings for functions: -static functions -functions in anonymous namespace -class methods in anonymous namespace -class method specializations in anonymous namespace -function specializations in anonymous namespace Unused warnings for variables: -static variables -variables in anonymous namespace -static data members in anonymous namespace -static data members specializations in anonymous namespace Reveals lots of opportunities for dead code removal in llvm codebase that will interest my esteemed colleagues. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111086 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/warn-unused-function.c
|
05eac86d547892847ca95b5350e28d681150fa68 |
|
13-Aug-2010 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Revert 111026 & 111027, build breakage. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111036 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/warn-unused-function.c
|
f6d1d43d68016e975f22264343631a55b9701495 |
|
13-Aug-2010 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
Expand the unused warnings for functions. Warn for: -static function declarations -functions in anonymous namespace -class methods in anonymous namespace -class method specializations in anonymous namespace -function specializations in anonymous namespace git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111026 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/warn-unused-function.c
|
1a4221cbe1912421ed7e29d0bbac39e9792af8a2 |
|
09-Apr-2010 |
Chris Lattner <sabre@nondot.org> |
Don't warn about unused static functions if they are marked with attr constructor or destructor. Patch by Jean-Daniel Dupas! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100870 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/warn-unused-function.c
|
e1fcf29951432de60e9fba243d500d069e929900 |
|
08-Apr-2010 |
Ted Kremenek <kremenek@apple.com> |
Include all warnings under '-Wunused' in '-Wmost' and '-Wall'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100786 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/warn-unused-function.c
|
c777221d22e2687938c061de6698ddcccbe00fdc |
|
17-Feb-2010 |
Tanya Lattner <tonic@nondot.org> |
Do not add functions marked with the unused attribute to the list of unused functions to warn about. Update test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96452 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/warn-unused-function.c
|
12ead498c4bc279472b21d446bfccec0f654779e |
|
17-Feb-2010 |
Tanya Lattner <tonic@nondot.org> |
Fix unused function warning to handle used attributes and redeclarations. Update test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96444 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/warn-unused-function.c
|
75d113711eb4e40029bb0426365396b76281deee |
|
16-Feb-2010 |
Daniel Dunbar <daniel@zuster.org> |
Disable warn_unused_function for now, its breaking various project builds due to false positives. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96375 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/warn-unused-function.c
|
e6bbc01d1c4ec5241df36042e0a4a12a6711934b |
|
12-Feb-2010 |
Tanya Lattner <tonic@nondot.org> |
Implementing unused function warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95940 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/warn-unused-function.c
|