Skip to content

Commit 4862fe5

Browse files
authored
Disable ABSL_INTERNAL_ENABLE_FORMAT_CHECKER under VsCode/Intellisense (abseil#1097)
1 parent e3fdd9b commit 4862fe5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

absl/strings/internal/str_format/checker.h

+8-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,15 @@
2222
// Compile time check support for entry points.
2323

2424
#ifndef ABSL_INTERNAL_ENABLE_FORMAT_CHECKER
25-
#if ABSL_HAVE_ATTRIBUTE(enable_if) && !defined(__native_client__)
25+
26+
// We disable format checker under vscode intellisense compilation.
27+
// See https://github.com/microsoft/vscode-cpptools/issues/3683 for
28+
// more details.
29+
#if ABSL_HAVE_ATTRIBUTE(enable_if) && !defined(__native_client__) && \
30+
!defined(__INTELLISENSE__)
2631
#define ABSL_INTERNAL_ENABLE_FORMAT_CHECKER 1
27-
#endif // ABSL_HAVE_ATTRIBUTE(enable_if) && !defined(__native_client__)
32+
#endif // ABSL_HAVE_ATTRIBUTE(enable_if) && !defined(__native_client__) &&
33+
// !defined(__INTELLISENSE__)
2834
#endif // ABSL_INTERNAL_ENABLE_FORMAT_CHECKER
2935

3036
namespace absl {

0 commit comments

Comments
 (0)