[cfe-commits] r158794 - /cfe/trunk/lib/Serialization/ASTReader.cpp
Chandler Carruth
chandlerc at gmail.com
Tue Jun 19 23:47:54 PDT 2012
Author: chandlerc
Date: Wed Jun 20 01:47:54 2012
New Revision: 158794
URL: http://llvm.org/viewvc/llvm-project?rev=158794&view=rev
Log:
Fix a warning on a fully covered switch with a default:
../tools/clang/lib/Serialization/ASTReader.cpp:6316:9: warning: default label in switch which covers all enumeration values [-Wcovered-switch-default]
Also fix the indentation here to match the coding conventions.
Modified:
cfe/trunk/lib/Serialization/ASTReader.cpp
Modified: cfe/trunk/lib/Serialization/ASTReader.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReader.cpp?rev=158794&r1=158793&r2=158794&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReader.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReader.cpp Wed Jun 20 01:47:54 2012
@@ -6313,19 +6313,16 @@
// Read a record.
Record.clear();
switch ((CommentRecordTypes) Cursor.ReadRecord(Code, Record)) {
- default: // Default behavior: ignore.
- break;
-
- case COMMENTS_RAW_COMMENT: {
- unsigned Idx = 0;
- SourceRange SR = ReadSourceRange(F, Record, Idx);
- RawComment::CommentKind Kind =
- (RawComment::CommentKind) Record[Idx++];
- bool IsTrailingComment = Record[Idx++];
- bool IsAlmostTrailingComment = Record[Idx++];
- Comments.push_back(RawComment(SR, Kind, IsTrailingComment,
- IsAlmostTrailingComment));
- break;
+ case COMMENTS_RAW_COMMENT: {
+ unsigned Idx = 0;
+ SourceRange SR = ReadSourceRange(F, Record, Idx);
+ RawComment::CommentKind Kind =
+ (RawComment::CommentKind) Record[Idx++];
+ bool IsTrailingComment = Record[Idx++];
+ bool IsAlmostTrailingComment = Record[Idx++];
+ Comments.push_back(RawComment(SR, Kind, IsTrailingComment,
+ IsAlmostTrailingComment));
+ break;
}
}
}
More information about the cfe-commits
mailing list