|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for Compiler_Sema.H. More...
#include <gtest/gtest.h>#include <Compiler_Parser.H>#include <Compiler_Sema.H>#include <string>#include <vector>Go to the source code of this file.
Functions | |
| TEST (CompilerSema, ResolvesFunctionsParametersLocalsAndGlobals) | |
| TEST (CompilerSema, ReportsDuplicateDeclarationsAndShadowing) | |
| TEST (CompilerSema, ReportsDuplicateTypeDeclarations) | |
| TEST (CompilerSema, ReportsDuplicateAndSelfImports) | |
| TEST (CompilerSema, ReportsUnresolvedNamesAndControlFlowMisuse) | |
Tests for Compiler_Sema.H.
Definition in file compiler_sema_test.cc.
| TEST | ( | CompilerSema | , |
| ReportsDuplicateAndSelfImports | |||
| ) |
Definition at line 183 of file compiler_sema_test.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::Compiler_Semantic_Analyzer::analyze_module(), and Aleph::Diagnostic_Engine::has_errors().
| TEST | ( | CompilerSema | , |
| ReportsDuplicateDeclarationsAndShadowing | |||
| ) |
Definition at line 133 of file compiler_sema_test.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::Compiler_Semantic_Options::allow_shadowing, Aleph::Compiler_Semantic_Analyzer::analyze_module(), and Aleph::Diagnostic_Engine::has_errors().
| TEST | ( | CompilerSema | , |
| ReportsDuplicateTypeDeclarations | |||
| ) |
Definition at line 160 of file compiler_sema_test.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::Compiler_Semantic_Analyzer::analyze_module(), and Aleph::Diagnostic_Engine::has_errors().
| TEST | ( | CompilerSema | , |
| ReportsUnresolvedNamesAndControlFlowMisuse | |||
| ) |
Definition at line 208 of file compiler_sema_test.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::Compiler_Semantic_Analyzer::analyze_module(), and Aleph::Diagnostic_Engine::has_errors().
| TEST | ( | CompilerSema | , |
| ResolvesFunctionsParametersLocalsAndGlobals | |||
| ) |
Definition at line 71 of file compiler_sema_test.cc.
References Aleph::Source_Manager::add_virtual_file(), Aleph::Compiler_Semantic_Analyzer::analyze_module(), Aleph::Diagnostic_Engine::has_errors(), Aleph::Compiler_Symbol::kind, Aleph::Compiler_Symbol::name, Aleph::Compiler_Semantic_Analyzer::resolution_count(), Aleph::Compiler_Semantic_Analyzer::resolved_symbol(), Aleph::sum(), and Aleph::Compiler_Semantic_Analyzer::symbol_count().