summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2013-12-05 01:25:20 +0000
committerEnrico Granata <egranata@apple.com>2013-12-05 01:25:20 +0000
commit315133710d270db3486a583e1ed6f885dfff07b8 (patch)
tree78671184f142e4319d24f46531cca5073a623a8d /clang/lib/Sema/SemaInit.cpp
parent0503a870a94c28ab32fa461e175f8cb387c8718e (diff)
downloadbcm5719-llvm-315133710d270db3486a583e1ed6f885dfff07b8.tar.gz
bcm5719-llvm-315133710d270db3486a583e1ed6f885dfff07b8.zip
Provide an easy way for synthetic child provider front ends to declare themselves “invalid”
This is not being used yet, and in practice, more refactoring would be required to make this fully practical In practice, the way this should work is that CalculateNumChildren(), GetChildAtIndex(), GetIndexOfChildWithName() and MightHaveChildren() should all default to failure values when m_valid == false. Update() should be the only function actually setting/clearing the flag upon inspecting the backend ValueObject, if it determines it to be in an incongruent state Given refactoring of the FrontEnd APIs, this work could be automatically performed without the individual providers having to replicate this logic The way this works now is that each front end picks one or more “key ivars” and keys off those to detect invalidity This is a baby step 0 to a better world llvm-svn: 196452
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud