[cfe-commits] r42025 - in /cfe/trunk: AST/Decl.cpp include/clang/AST/Decl.h
Steve Naroff
snaroff at apple.com
Mon Sep 17 07:49:06 PDT 2007
Author: snaroff
Date: Mon Sep 17 09:49:06 2007
New Revision: 42025
URL: http://llvm.org/viewvc/llvm-project?rev=42025&view=rev
Log:
Add const to debug hook...
Modified:
cfe/trunk/AST/Decl.cpp
cfe/trunk/include/clang/AST/Decl.h
Modified: cfe/trunk/AST/Decl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/Decl.cpp?rev=42025&r1=42024&r2=42025&view=diff
==============================================================================
--- cfe/trunk/AST/Decl.cpp (original)
+++ cfe/trunk/AST/Decl.cpp Mon Sep 17 09:49:06 2007
@@ -33,7 +33,7 @@
static bool StatSwitch = false;
-const char *Decl::getDeclKindName() {
+const char *Decl::getDeclKindName() const {
switch (DeclKind) {
default: assert(0 && "Unknown decl kind!");
case Typedef:
Modified: cfe/trunk/include/clang/AST/Decl.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Decl.h?rev=42025&r1=42024&r2=42025&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/trunk/include/clang/AST/Decl.h Mon Sep 17 09:49:06 2007
@@ -69,7 +69,7 @@
public:
Kind getKind() const { return DeclKind; }
- const char *getDeclKindName();
+ const char *getDeclKindName() const;
/// setInvalidDecl - Indicates the Decl had a semantic error. This
/// allows for graceful error recovery.
More information about the cfe-commits
mailing list