Changeset 9feb34b
- Timestamp:
- Mar 29, 2023, 11:07:03 AM (2 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- afdb74b
- Parents:
- 60380a1
- Location:
- src
- Files:
-
- 1 added
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/CodeGen/CodeGenerator.cc ¶
r60380a1 r9feb34b 17 17 #include <cassert> // for assert, assertf 18 18 #include <list> // for _List_iterator, list, list<>::it... 19 #include <sstream> // for stringstream 19 20 20 21 #include "AST/Decl.hpp" // for DeclWithType 21 22 #include "Common/UniqueName.h" // for UniqueName 22 #include "Common/utility.h" // for CodeLocation, toString23 23 #include "GenType.h" // for genType 24 24 #include "InitTweak/InitTweak.h" // for getPointerBase -
TabularUnified src/Common/DeclStats.cpp ¶
r60380a1 r9feb34b 23 23 #include <iostream> 24 24 #include <map> 25 #include <sstream> 25 26 #include <unordered_map> 26 27 #include <unordered_set> -
TabularUnified src/Common/ResolvProtoDump.cpp ¶
r60380a1 r9feb34b 19 19 #include <iostream> 20 20 #include <set> 21 #include <sstream> 21 22 #include <unordered_set> 22 23 … … 26 27 #include "AST/Type.hpp" 27 28 #include "CodeGen/OperatorTable.h" 28 #include "Common/utility.h"29 29 30 30 namespace { -
TabularUnified src/Common/module.mk ¶
r60380a1 r9feb34b 52 52 Common/Stats/Time.cc \ 53 53 Common/Stats/Time.h \ 54 Common/ToString.hpp \ 54 55 Common/UniqueName.cc \ 55 56 Common/UniqueName.h \ -
TabularUnified src/Common/utility.h ¶
r60380a1 r9feb34b 22 22 #include <list> 23 23 #include <memory> 24 #include <sstream>25 24 #include <string> 26 25 #include <type_traits> … … 143 142 dst.swap( src ); 144 143 } 145 146 template < typename T >147 void toString_single( std::ostream & os, const T & value ) {148 os << value;149 }150 151 template < typename T, typename... Params >152 void toString_single( std::ostream & os, const T & value, const Params & ... params ) {153 os << value;154 toString_single( os, params ... );155 }156 157 template < typename ... Params >158 std::string toString( const Params & ... params ) {159 std::ostringstream os;160 toString_single( os, params... );161 return os.str();162 }163 164 #define toCString( ... ) toString( __VA_ARGS__ ).c_str()165 144 166 145 template< typename... Args > -
TabularUnified src/ControlStruct/ExceptDeclNew.cpp ¶
r60380a1 r9feb34b 15 15 16 16 #include "ExceptDecl.h" 17 18 #include <sstream> 17 19 18 20 #include "AST/Decl.hpp" -
TabularUnified src/ControlStruct/MLEMutator.cc ¶
r60380a1 r9feb34b 25 25 #include <memory> // for allocator_traits<>::value_... 26 26 27 #include "Common/ utility.h" // for toString, operator+27 #include "Common/ToString.hpp" // for toString 28 28 #include "ControlStruct/LabelGenerator.h" // for LabelGenerator 29 29 #include "MLEMutator.h" -
TabularUnified src/GenPoly/Box.cc ¶
r60380a1 r9feb34b 31 31 #include "Common/SemanticError.h" // for SemanticError 32 32 #include "Common/UniqueName.h" // for UniqueName 33 #include "Common/ utility.h" // for toString33 #include "Common/ToString.hpp" // for toCString 34 34 #include "FindFunction.h" // for findFunction, findAndReplace... 35 35 #include "GenPoly/ErasableScopedMap.h" // for ErasableScopedMap<>::const_i... -
TabularUnified src/GenPoly/Lvalue.cc ¶
r60380a1 r9feb34b 17 17 #include <string> // for string 18 18 19 #include "Common/ToString.hpp" // for toCString 19 20 #include "Common/UniqueName.h" 20 21 #include "Common/PassVisitor.h" -
TabularUnified src/GenPoly/LvalueNew.cpp ¶
r60380a1 r9feb34b 25 25 #include "AST/Pass.hpp" 26 26 #include "Common/SemanticError.h" // for SemanticWarning 27 #include "Common/ToString.hpp" // for toCString 27 28 #include "Common/UniqueName.h" // for UniqueName 28 29 #include "GenPoly/GenPoly.h" // for genFunctionType -
TabularUnified src/InitTweak/FixInit.cc ¶
r60380a1 r9feb34b 32 32 #include "Common/PassVisitor.h" // for PassVisitor, WithStmtsToAdd 33 33 #include "Common/SemanticError.h" // for SemanticError 34 #include "Common/ToString.hpp" // for toCString 34 35 #include "Common/UniqueName.h" // for UniqueName 35 #include "Common/utility.h" // for CodeLocation, ValueGuard, toSt...36 36 #include "FixGlobalInit.h" // for fixGlobalInit 37 37 #include "GenInit.h" // for genCtorDtor -
TabularUnified src/InitTweak/FixInitNew.cpp ¶
r60380a1 r9feb34b 20 20 #include "Common/PassVisitor.h" // for PassVisitor, WithStmtsToAdd 21 21 #include "Common/SemanticError.h" // for SemanticError 22 #include "Common/ToString.hpp" // for toCString 22 23 #include "Common/UniqueName.h" // for UniqueName 23 #include "Common/utility.h" // for CodeLocation, ValueGuard, toSt...24 24 #include "FixGlobalInit.h" // for fixGlobalInit 25 25 #include "GenInit.h" // for genCtorDtor -
TabularUnified src/InitTweak/GenInit.cc ¶
r60380a1 r9feb34b 31 31 #include "Common/PassVisitor.h" // for PassVisitor, WithGuards, WithShort... 32 32 #include "Common/SemanticError.h" // for SemanticError 33 #include "Common/ToString.hpp" // for toCString 33 34 #include "Common/UniqueName.h" // for UniqueName 34 35 #include "Common/utility.h" // for ValueGuard, maybeClone -
TabularUnified src/Parser/parser.yy ¶
r60380a1 r9feb34b 44 44 45 45 #include <cstdio> 46 #include <sstream> 46 47 #include <stack> 47 48 using namespace std; -
TabularUnified src/ResolvExpr/Candidate.cpp ¶
r60380a1 r9feb34b 17 17 18 18 #include <iostream> 19 #include <sstream> 19 20 20 21 #include "AST/Print.hpp" … … 44 45 sorted.reserve(cands.size()); 45 46 for(const auto & c : cands) { 46 std:: stringstream ss;47 std::ostringstream ss; 47 48 print( ss, *c, indent ); 48 49 sorted.push_back(ss.str()); -
TabularUnified src/ResolvExpr/Resolver.cc ¶
r60380a1 r9feb34b 39 39 #include "AST/Type.hpp" 40 40 #include "Common/Eval.h" // for eval 41 #include "Common/Iterate.hpp" // for group_iterate 41 42 #include "Common/PassVisitor.h" // for PassVisitor 42 43 #include "Common/SemanticError.h" // for SemanticError 43 44 #include "Common/Stats/ResolveTime.h" // for ResolveTime::start(), ResolveTime::stop() 44 #include "Common/ utility.h" // for ValueGuard, group_iterate45 #include "Common/ToString.hpp" // for toCString 45 46 #include "InitTweak/GenInit.h" 46 47 #include "InitTweak/InitTweak.h" // for isIntrinsicSingleArgCallStmt -
TabularUnified src/SymTab/FixFunction.cc ¶
r60380a1 r9feb34b 21 21 #include "AST/Pass.hpp" 22 22 #include "AST/Type.hpp" 23 #include "Common/utility.h" // for maybeClone,copy23 #include "Common/utility.h" // for copy 24 24 #include "SynTree/Declaration.h" // for FunctionDecl, ObjectDecl, Declarati... 25 25 #include "SynTree/Expression.h" // for Expression -
TabularUnified src/SymTab/Mangler.cc ¶
r60380a1 r9feb34b 24 24 #include "CodeGen/OperatorTable.h" // for OperatorInfo, operatorLookup 25 25 #include "Common/PassVisitor.h" 26 #include "Common/ToString.hpp" // for toCString 26 27 #include "Common/SemanticError.h" // for SemanticError 27 #include "Common/utility.h" // for toString28 28 #include "ResolvExpr/TypeEnvironment.h" // for TypeEnvironment 29 29 #include "SynTree/LinkageSpec.h" // for Spec, isOverridable, AutoGen, Int... -
TabularUnified src/SymTab/Validate.cc ¶
r60380a1 r9feb34b 55 55 #include "Common/ScopedMap.h" // for ScopedMap 56 56 #include "Common/SemanticError.h" // for SemanticError 57 #include "Common/ToString.hpp" // for toCString 57 58 #include "Common/UniqueName.h" // for UniqueName 58 #include "Common/utility.h" // for operator+,cloneAll, deleteAll59 #include "Common/utility.h" // for cloneAll, deleteAll 59 60 #include "CompilationState.h" // skip some passes in new-ast build 60 61 #include "Concurrency/Keywords.h" // for applyKeywords -
TabularUnified src/SymTab/ValidateType.cc ¶
r60380a1 r9feb34b 18 18 #include "CodeGen/OperatorTable.h" 19 19 #include "Common/PassVisitor.h" 20 #include "Common/ToString.hpp" 20 21 #include "SymTab/FixFunction.h" 21 22 #include "SynTree/Declaration.h" -
TabularUnified src/SynTree/Type.cc ¶
r60380a1 r9feb34b 16 16 17 17 #include "Attribute.h" // for Attribute 18 #include "Common/ToString.hpp" // for toCString 18 19 #include "Common/utility.h" // for cloneAll, deleteAll, printAll 19 20 #include "InitTweak/InitTweak.h" // for getPointerBase … … 105 106 int Type::referenceDepth() const { return 0; } 106 107 108 AggregateDecl * Type::getAggr() const { 109 assertf( false, "Non-aggregate type: %s", toCString( this ) ); 110 } 111 107 112 TypeSubstitution Type::genericSubstitution() const { assertf( false, "Non-aggregate type: %s", toCString( this ) ); } 108 113 -
TabularUnified src/SynTree/Type.h ¶
r60380a1 r9feb34b 24 24 #include "BaseSyntaxNode.h" // for BaseSyntaxNode 25 25 #include "Common/Iterate.hpp"// for operator+ 26 #include "Common/utility.h" // for toCString27 26 #include "Mutator.h" // for Mutator 28 27 #include "SynTree.h" // for AST nodes … … 186 185 virtual bool isComplete() const { return true; } 187 186 188 virtual AggregateDecl * getAggr() const { assertf( false, "Non-aggregate type: %s", toCString( this ) ); }187 virtual AggregateDecl * getAggr() const; 189 188 190 189 virtual TypeSubstitution genericSubstitution() const; -
TabularUnified src/Validate/FixQualifiedTypes.cpp ¶
r60380a1 r9feb34b 16 16 #include "Validate/FixQualifiedTypes.hpp" 17 17 18 #include "AST/LinkageSpec.hpp" // for Linkage 18 19 #include "AST/Pass.hpp" 19 20 #include "AST/TranslationUnit.hpp" 21 #include "Common/ToString.hpp" // for toString 22 #include "SymTab/Mangler.h" // for Mangler 20 23 #include "Validate/NoIdSymbolTable.hpp" 21 #include "SymTab/Mangler.h" // for Mangler22 #include "AST/LinkageSpec.hpp" // for Linkage23 24 24 25 namespace Validate { -
TabularUnified src/Validate/ForallPointerDecay.cpp ¶
r60380a1 r9feb34b 22 22 #include "CodeGen/OperatorTable.h" 23 23 #include "Common/CodeLocation.h" 24 #include "Common/ToString.hpp" 24 25 #include "SymTab/FixFunction.h" 25 26 -
TabularUnified src/Validate/HandleAttributes.cc ¶
r60380a1 r9feb34b 19 19 #include "Common/Eval.h" 20 20 #include "Common/PassVisitor.h" 21 #include "Common/ToString.hpp" 21 22 #include "Common/SemanticError.h" 22 23 #include "ResolvExpr/Resolver.h" -
TabularUnified src/Validate/HoistStruct.cpp ¶
r60380a1 r9feb34b 16 16 #include "Validate/HoistStruct.hpp" 17 17 18 #include <sstream> 19 18 20 #include "AST/Pass.hpp" 19 21 #include "AST/TranslationUnit.hpp" 20 #include "Common/utility.h"21 22 22 23 namespace Validate { -
TabularUnified src/include/cassert ¶
r60380a1 r9feb34b 20 20 #include_next <cassert> 21 21 22 #include <string> 23 24 template < typename ... Params > 25 std::string toString( const Params & ... params ); 22 #include "Common/ToString.hpp" 26 23 27 24 #ifdef NDEBUG
Note: See TracChangeset
for help on using the changeset viewer.