Skip to content

Commit 73b0182

Browse files
committed
std::exit => exit
1 parent 93edea5 commit 73b0182

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎libclang/diagnosis/main.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ constexpr int NUM = 2;
7272
intmain(int argc, char **argv){
7373
if (argc < NUM){
7474
errs() << "usage: " << argv[0] << " filename [options ...]\n";
75-
std::exit(1);
75+
exit(1);
7676
}
7777

7878
CXIndex index = clang_createIndex(1, 0);

‎libclang/wrapper/main.cc‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#include"CursorInfo.hpp"
22
#include"CursorCounter.hpp"
33

4+
#include<cstdlib>
5+
46
typedefunsigned LevelType;
57

68
usingnamespacellvm;
@@ -36,7 +38,7 @@ enum CXChildVisitResult visitChildrenCallback(CXCursor cursor, CXCursor parent,
3638
intmain(int argc, char **argv){
3739
if (argc < 2){
3840
std::fprintf(stderr, "usage: %s ${c_cxx_src_file}", argv[0]);
39-
std::exit(1);
41+
exit(1);
4042
}
4143
charconst *filename = argv[1];
4244
CXIndex idx = clang_createIndex(1, 0);

0 commit comments

Comments
(0)