From bfde4054957b2fe4492f04d3724982b24aa8116f Mon Sep 17 00:00:00 2001 From: Andrzej Kotulski Date: Tue, 5 Apr 2016 02:50:52 -0700 Subject: [PATCH] Fix detection of gcc version in models Summary:public clang-format changed filename inside __has_include(), turn off clang format for that part of the code. Reviewed By: jberdine Differential Revision: D3133593 fb-gh-sync-id: c601514 fbshipit-source-id: c601514 --- infer/models/cpp/include/infer_model/portability.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/infer/models/cpp/include/infer_model/portability.h b/infer/models/cpp/include/infer_model/portability.h index 6af8a4cd9..fc2e559e8 100644 --- a/infer/models/cpp/include/infer_model/portability.h +++ b/infer/models/cpp/include/infer_model/portability.h @@ -12,11 +12,13 @@ // https://github.com/facebook/folly/blob/b1eb6819f3ffe6b645f39d505ca8ace3116b7873/folly/configure.ac#L232 // Depending whether the project is compiled with libc++ or stdlibc++, include their // internal config headers to get information about versions +// clang-format off #if __has_include(<__config>) // defines _LIBCPP_VERSION #include <__config> -#elif __has_include() // defines __GLIBCXX__ +#elif __has_include() // defines __GLIBCXX__ #include #endif +// clang-format on // Figure out whether the library really supports c++11 standard #if __cplusplus >= 201103L