llvm/flang/lib
Tim Keith 30dd289247 [flang] Add FoldingContext to SemanticsContext
FoldingContext is now part of SemanticsContext. It is created at the
beginning with a default-constructed CharBlock as the location in its
ContextualMessages.

Add PushLocation() to ContextualMessages to remember the previous source
location and set a new one. The old one is restored when the returned
object goes out of scope.

SemanticsContext is now the only state passed in to class ExprAnalyzer,
class Mutator, AnalyzeExpr(), AnalyzeExpressions().

Add Say() convenience functions for reporting errors to ExprAnalyzer.

Original-commit: flang-compiler/f18@70c499ffc4
Reviewed-on: https://github.com/flang-compiler/f18/pull/215
Tree-same-pre-rewrite: false
2018-10-22 16:41:26 -07:00
..
common [flang] improve naming, silence bogus warnings 2018-10-15 12:17:30 -07:00
evaluate [flang] Add -i8, -r8, &c. options to f18 development driver 2018-10-16 14:42:22 -07:00
parser [flang] Add FoldingContext to SemanticsContext 2018-10-22 16:41:26 -07:00
semantics [flang] Add FoldingContext to SemanticsContext 2018-10-22 16:41:26 -07:00
CMakeLists.txt [flang] Rearrange some facilities into a new lib/common. 2018-06-18 11:05:17 -07:00