r211997 - LibclangTest.cpp: s/uint/unsigned/. I think 'uint' is not a standard type.
NAKAMURA Takumi
geek4civic at gmail.com
Sun Jun 29 04:07:48 PDT 2014
Author: chapuni
Date: Sun Jun 29 06:07:48 2014
New Revision: 211997
URL: http://llvm.org/viewvc/llvm-project?rev=211997&view=rev
Log:
LibclangTest.cpp: s/uint/unsigned/. I think 'uint' is not a standard type.
Modified:
cfe/trunk/unittests/libclang/LibclangTest.cpp
Modified: cfe/trunk/unittests/libclang/LibclangTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/libclang/LibclangTest.cpp?rev=211997&r1=211996&r2=211997&view=diff
==============================================================================
--- cfe/trunk/unittests/libclang/LibclangTest.cpp (original)
+++ cfe/trunk/unittests/libclang/LibclangTest.cpp Sun Jun 29 06:07:48 2014
@@ -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");
More information about the cfe-commits
mailing list