summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-11-29 23:05:17 +0000
committerTed Kremenek <kremenek@apple.com>2007-11-29 23:05:17 +0000
commitbfcf8cdbd72f368f3662002ab73fd3d9e39e94eb (patch)
treeabf49685a8630f93970479a150b475ba09174960 /llvm/docs
parentd35b5acae4dc424fa49e13e080bcf65e9e0f4992 (diff)
downloadbcm5719-llvm-bfcf8cdbd72f368f3662002ab73fd3d9e39e94eb.tar.gz
bcm5719-llvm-bfcf8cdbd72f368f3662002ab73fd3d9e39e94eb.zip
Added method "HandleTopLevelDeclaration" to ASTConsumer. This will eventually
be the new hook that ASTStreamer calls to feed top-level Decls to ASTConsumers. The difference between "HandleTopLevelDeclaration" and "HandleTopLevelDecl" is that "HandleTopLevelDecl" is currently called by ASTStreamer for every top-level declaration, including those that appear within a Decl chain. Using the new interface, ASTStreamer would only call HandleTopLevelDeclaration for Decls that appear that the beginning of a Decl chain (i.e., a group of related decls). To preserve the behavior that all subclasses of ASTConsumer currently expect, the default implementation of HandleTopLevelDeclaration simply calls HandleTopLevelDecl, and for decl chains it calls HandleTopLevelDecl for each Decl* in a chain of Decls. The advantage of this interface is that some subclasses of ASTConsumer only really want the Decl chain, and not each individual Decl passed to them. This extra level of indirection allows subclasses to override the default behavior if they so desire. llvm-svn: 44444
Diffstat (limited to 'llvm/docs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud