From 8533dd2344d8be040a992a86f23e7cf696d59c4a Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 15 Mar 2022 10:45:24 -0400 Subject: C++ extractor callable support (#2159) * #include an absolute path didn't work - because paths were taken to always be relative. * Split doc extractor such that can be used in C++ extractor. * Compiles. Update the stdlib docs. * Fix issue on release builds. * Add support for extracting documentation to C++ extractor. * Dump out markup. Make enum value backing type take tokens. * Node::Type -> Node::Kind * More improvements around Node::Type -> Node::Kind * Support for parsing callable types. * Fix issue params for callable, and default value for variable. * Add support for static. * Improve handling parsing of contained types. * Small improvements around template consumption. * Improve dumping with markup/static. * Small improvements around reflection. * Add more flexible handling of markers. Allow reflection without markers. --- tools/slang-cpp-extractor/diagnostic-defs.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/slang-cpp-extractor/diagnostic-defs.h') diff --git a/tools/slang-cpp-extractor/diagnostic-defs.h b/tools/slang-cpp-extractor/diagnostic-defs.h index ba43f1844..c7e364291 100644 --- a/tools/slang-cpp-extractor/diagnostic-defs.h +++ b/tools/slang-cpp-extractor/diagnostic-defs.h @@ -21,6 +21,7 @@ DIAGNOSTIC(-1, Note, seeDeclarationOf, "see declaration of '$0'") DIAGNOSTIC(-1, Note, seeOpen, "see open $0") DIAGNOSTIC(-1, Note, commandLine, "Command line: $0") +DIAGNOSTIC(-1, Note, previousLocation, "previous location") DIAGNOSTIC(1, Error, cannotOpenFile, "cannot open file '$0'.") DIAGNOSTIC(1, Error, errorAccessingFile, "error accessing file '$0'.") @@ -46,6 +47,11 @@ DIAGNOSTIC(100012, Error, typeInDifferentTypeSet, "Type $0 in different type set DIAGNOSTIC(100013, Error, expectingIdentifier, "Expecting an identifier, found $0") DIAGNOSTIC(100014, Error, cannotDeclareTypeInScope, "Cannot declare types in this scope") DIAGNOSTIC(100015, Error, identifierAlreadyDefined, "Identifier already defined '$0'") +DIAGNOSTIC(100016, Error, expectingType, "Expecting a type") +DIAGNOSTIC(100017, Error, cannotParseExpression, "Cannot parse expression") +DIAGNOSTIC(100018, Error, cannotOverload, "Cannot overload this declaration"); +DIAGNOSTIC(100019, Error, classMarkerOutsideOfClass, "A class/struct marker is found outside of class or struct"); +DIAGNOSTIC(100020, Error, classMarkerAlreadyFound, "A class/struct marker already found in type '$0'"); // Command line errors 100100 -- cgit v1.2.3