Summary: There is no point in attaching plugin to `clang -E` calls since they don't produce any AST. Same applies to `-M`, `-MM`, etc. (but not `-MD` nor `-MMD`). Reviewed By: jvillard Differential Revision: D4681618 fbshipit-source-id: 7a76addmaster
							parent
							
								
									6c1339d044
								
							
						
					
					
						commit
						6c67c850d5
					
				| @ -0,0 +1,17 @@ | ||||
| # Copyright (c) 2017 - present Facebook, Inc.
 | ||||
| # All rights reserved.
 | ||||
| #
 | ||||
| # This source code is licensed under the BSD style license found in the
 | ||||
| # LICENSE file in the root directory of this source tree. An additional grant
 | ||||
| # of patent rights can be found in the PATENTS file in the same directory.
 | ||||
| 
 | ||||
| TESTS_DIR = ../.. | ||||
| 
 | ||||
| ANALYZER = infer | ||||
| CLANG_OPTIONS = -E -c | ||||
| INFER_OPTIONS = --report-custom-error --developer-mode --project-root ../codetoanalyze --no-failures-allowed | ||||
| INFERPRINT_OPTIONS = --issues-tests | ||||
| 
 | ||||
| SOURCES = ../codetoanalyze/hello.c | ||||
| 
 | ||||
| include $(TESTS_DIR)/clang.make | ||||
| @ -0,0 +1,17 @@ | ||||
| # Copyright (c) 2017 - present Facebook, Inc.
 | ||||
| # All rights reserved.
 | ||||
| #
 | ||||
| # This source code is licensed under the BSD style license found in the
 | ||||
| # LICENSE file in the root directory of this source tree. An additional grant
 | ||||
| # of patent rights can be found in the PATENTS file in the same directory.
 | ||||
| 
 | ||||
| TESTS_DIR = ../.. | ||||
| 
 | ||||
| ANALYZER = infer | ||||
| CLANG_OPTIONS = -MD -c | ||||
| INFER_OPTIONS = --report-custom-error --developer-mode --project-root ../codetoanalyze --no-failures-allowed | ||||
| INFERPRINT_OPTIONS = --issues-tests | ||||
| 
 | ||||
| SOURCES = ../codetoanalyze/hello.c | ||||
| 
 | ||||
| include $(TESTS_DIR)/clang.make | ||||
| @ -0,0 +1 @@ | ||||
| hello.c, test, 2, NULL_DEREFERENCE, [start of procedure test()] | ||||
| @ -0,0 +1,17 @@ | ||||
| # Copyright (c) 2017 - present Facebook, Inc.
 | ||||
| # All rights reserved.
 | ||||
| #
 | ||||
| # This source code is licensed under the BSD style license found in the
 | ||||
| # LICENSE file in the root directory of this source tree. An additional grant
 | ||||
| # of patent rights can be found in the PATENTS file in the same directory.
 | ||||
| 
 | ||||
| TESTS_DIR = ../.. | ||||
| 
 | ||||
| ANALYZER = infer | ||||
| CLANG_OPTIONS = -M -c | ||||
| INFER_OPTIONS = --report-custom-error --developer-mode --project-root ../codetoanalyze --no-failures-allowed | ||||
| INFERPRINT_OPTIONS = --issues-tests | ||||
| 
 | ||||
| SOURCES = ../codetoanalyze/hello.c | ||||
| 
 | ||||
| include $(TESTS_DIR)/clang.make | ||||
					Loading…
					
					
				
		Reference in new issue