[PATCH] D44294: [clangd] Fix diagnostic errors in the test code, NFC.

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 9 02:19:31 PST 2018

ilya-biryukov added inline comments.

Comment at: unittests/clangd/XRefsTests.cpp:587
-  const char *HeaderContents = R"cpp([[]]int a;)cpp";
+  const char *HeaderContents = R"cpp([[]]#ifndef TEST_H_
+                                     #define TEST_H_
I would go with `#pragma once` in the test code, it adds less noise. WDYT?

  rCTE Clang Tools Extra


More information about the cfe-commits mailing list