From 2cb96c356a0addb7b2d3cec7c072ea763535d44b Mon Sep 17 00:00:00 2001 From: Jules Villard Date: Wed, 4 Jul 2018 05:20:39 -0700 Subject: [PATCH] [clang] remove capture hack Summary: The frontend got better and now `assert` is correctly translated. Reviewed By: dulmarod Differential Revision: D8731877 fbshipit-source-id: ba11b0c --- .../codetoanalyze/c/errors/assertions/assertion_example.c | 3 --- .../codetoanalyze/c/errors/assertions/assertion_failure.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/infer/tests/codetoanalyze/c/errors/assertions/assertion_example.c b/infer/tests/codetoanalyze/c/errors/assertions/assertion_example.c index a11c1033c..0d20e04e9 100644 --- a/infer/tests/codetoanalyze/c/errors/assertions/assertion_example.c +++ b/infer/tests/codetoanalyze/c/errors/assertions/assertion_example.c @@ -5,9 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -// TODO: remove this #define, it's here to get a specific version of -// [assert], as others may confuse the clang frontend (t26324545) -#define __STRICT_ANSI__ #include // We should report here no NPE, but also we should report div0 to show that we diff --git a/infer/tests/codetoanalyze/c/errors/assertions/assertion_failure.c b/infer/tests/codetoanalyze/c/errors/assertions/assertion_failure.c index 0fea6241a..9677fade4 100644 --- a/infer/tests/codetoanalyze/c/errors/assertions/assertion_failure.c +++ b/infer/tests/codetoanalyze/c/errors/assertions/assertion_failure.c @@ -5,9 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -// TODO: remove this #define, it's here to get a specific version of -// [assert], as others may confuse the clang frontend (t26324545) -#define __STRICT_ANSI__ #include #include