summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2013-02-06 10:33:21 +0000
committerManuel Klimek <klimek@google.com>2013-02-06 10:33:21 +0000
commit2cff49e026879ad2f0c24de4a2c3168fb83c663e (patch)
treea82c5849fdb59188eb07e9610127056ede4b015e /clang/lib/Format/Format.cpp
parentc697ad29ff7ffd13826bffa620650b725795034e (diff)
downloadbcm5719-llvm-2cff49e026879ad2f0c24de4a2c3168fb83c663e.tar.gz
bcm5719-llvm-2cff49e026879ad2f0c24de4a2c3168fb83c663e.zip
Adds a convenience function selectFirst to simplify matching.
A very common use case is to search for the first occurrence of a certain node that is a descendant of another node. In that case, selectFirst significantly simplifies the code at the client side. llvm-svn: 174499
Diffstat (limited to 'clang/lib/Format/Format.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud