[clang-tools-extra] r350540 - [clangd] Include <cstdio> instead of <stdio.h>. NFC
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 7 08:55:59 PST 2019
Author: ibiryukov
Date: Mon Jan 7 08:55:59 2019
New Revision: 350540
URL: http://llvm.org/viewvc/llvm-project?rev=350540&view=rev
Log:
[clangd] Include <cstdio> instead of <stdio.h>. NFC
This fixes the only clang-tidy check currently enabled by clangd.
Modified:
clang-tools-extra/trunk/clangd/fuzzer/ClangdFuzzer.cpp
clang-tools-extra/trunk/unittests/clangd/JSONTransportTests.cpp
Modified: clang-tools-extra/trunk/clangd/fuzzer/ClangdFuzzer.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/fuzzer/ClangdFuzzer.cpp?rev=350540&r1=350539&r2=350540&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/fuzzer/ClangdFuzzer.cpp (original)
+++ clang-tools-extra/trunk/clangd/fuzzer/ClangdFuzzer.cpp Mon Jan 7 08:55:59 2019
@@ -16,8 +16,8 @@
#include "ClangdLSPServer.h"
#include "ClangdServer.h"
#include "CodeComplete.h"
+#include <cstdio>
#include <sstream>
-#include <stdio.h>
using namespace clang::clangd;
Modified: clang-tools-extra/trunk/unittests/clangd/JSONTransportTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/JSONTransportTests.cpp?rev=350540&r1=350539&r2=350540&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clangd/JSONTransportTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/clangd/JSONTransportTests.cpp Mon Jan 7 08:55:59 2019
@@ -10,7 +10,7 @@
#include "Transport.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
-#include <stdio.h>
+#include <cstdio>
namespace clang {
namespace clangd {
More information about the cfe-commits
mailing list