]> granicus.if.org Git - clang/commit
[Refactor NFC] Rename the (non-CCE, fold-failure) Diag during constant expression...
authorFaisal Vali <faisalv@yahoo.com>
Sat, 2 Jul 2016 22:34:24 +0000 (22:34 +0000)
committerFaisal Vali <faisalv@yahoo.com>
Sat, 2 Jul 2016 22:34:24 +0000 (22:34 +0000)
commitbe2741280dff4165895ae9a8a3bbce3f542b6ade
tree3659c95cbc56024dfbffed2dffa98d4250232f5a
parentd65c23f6e449210bcceef618b272cbb00a27bf5a
[Refactor NFC] Rename the (non-CCE, fold-failure) Diag during constant expression evaluation as FFDiag.

Currently, we have CCEDiags (C++11 core constant expression diags) and Fold failure diagnostics [I don't claim to yet fully understand exactly why we need the difference].  This patch explicitly replaces Info.Diag (whose use always represents a fold failure diag within the file) with Info.FFDiag.  This makes it more easily greppable in the file, and just like the name Info.CCEDiag, it gives the reader slight further insight into the nature of the diagnostic (as opposed to Info.Diag).

This patch is a preliminary refactoring step in an effort to allow support for compatibility-warnings and extensions (such as constexpr lambda) during constant expression evaluation.

All regressions pass.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274454 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp