Skip to content
Snippets Groups Projects
Commit 5179499b authored by NAKAMURA Takumi's avatar NAKAMURA Takumi
Browse files

LibclangTest.cpp: s/uint/unsigned/. I think 'uint' is not a standard type.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211997 91177308-0d34-0410-b5e6-96231b3b80d8
parent 4d0bc7de
No related branches found
No related tags found
No related merge requests found
......@@ -373,15 +373,15 @@ public:
OS << Contents;
}
void DisplayDiagnostics() {
uint NumDiagnostics = clang_getNumDiagnostics(ClangTU);
for (uint i = 0; i < NumDiagnostics; ++i) {
unsigned NumDiagnostics = clang_getNumDiagnostics(ClangTU);
for (unsigned i = 0; i < NumDiagnostics; ++i) {
auto Diag = clang_getDiagnostic(ClangTU, i);
DEBUG(llvm::dbgs() << clang_getCString(clang_formatDiagnostic(
Diag, clang_defaultDiagnosticDisplayOptions())) << "\n");
clang_disposeDiagnostic(Diag);
}
}
bool ReparseTU(uint num_unsaved_files, CXUnsavedFile* unsaved_files) {
bool ReparseTU(unsigned num_unsaved_files, CXUnsavedFile* unsaved_files) {
if (clang_reparseTranslationUnit(ClangTU, num_unsaved_files, unsaved_files,
clang_defaultReparseOptions(ClangTU))) {
DEBUG(llvm::dbgs() << "Reparse failed\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment