[cfe-commits] r38582 - /cfe/cfe/trunk/include/clang/Lex/MacroInfo.h
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:22:55 PDT 2007
Author: sabre
Date: Wed Jul 11 11:22:55 2007
New Revision: 38582
URL: http://llvm.org/viewvc/llvm-project?rev=38582&view=rev
Log:
remove some obsolete comments
Modified:
cfe/cfe/trunk/include/clang/Lex/MacroInfo.h
Modified: cfe/cfe/trunk/include/clang/Lex/MacroInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/include/clang/Lex/MacroInfo.h?rev=38582&r1=38581&r2=38582&view=diff
==============================================================================
--- cfe/cfe/trunk/include/clang/Lex/MacroInfo.h (original)
+++ cfe/cfe/trunk/include/clang/Lex/MacroInfo.h Wed Jul 11 11:22:55 2007
@@ -38,20 +38,6 @@
/// #define A A.
bool isDisabled;
-#if 0
- /* Number of tokens in expansion, or bytes for traditional macros. */
- unsigned int count;
- /* Number of parameters. */
- unsigned short paramc;
- /* If a function-like macro. */
- unsigned int fun_like : 1;
- /* If a variadic macro. */
- unsigned int variadic : 1;
- /* Nonzero if it has been expanded or had its existence tested. */
- unsigned int used : 1;
- /* Indicate which field of 'exp' is in use. */
- unsigned int traditional : 1;
-#endif
public:
MacroInfo(SourceLocation DefLoc) : Location(DefLoc) {
isDisabled = false;
@@ -71,8 +57,6 @@
/// AddTokenToBody - Add the specified token to the replacement text for the
/// macro.
void AddTokenToBody(const LexerToken &Tok) {
- // FIXME: Remember where this token came from, do something intelligent with
- // its location.
ReplacementTokens.push_back(Tok);
}
@@ -89,9 +73,6 @@
assert(!isDisabled && "Cannot disable an already-disabled macro!");
isDisabled = true;
}
-
- // Todo:
- // bool isDefinedInSystemHeader() { Look this up based on Location }
};
} // end namespace llvm
More information about the cfe-commits
mailing list