Index: include/clang/StaticAnalyzer/Core/AnalyzerOptions.h =================================================================== --- include/clang/StaticAnalyzer/Core/AnalyzerOptions.h +++ include/clang/StaticAnalyzer/Core/AnalyzerOptions.h @@ -311,6 +311,9 @@ /// \sa shouldDisplayMacroExpansions Optional DisplayMacroExpansions; + /// \sa shouldDisplayMacroExpansionsAsEvents + Optional DisplayMacroExpansionsAsEvents; + /// \sa shouldAggressivelySimplifyBinaryOperation Optional AggressiveBinaryOperationSimplification; @@ -693,6 +696,13 @@ /// when unset. bool shouldDisplayMacroExpansions(); + /// Returns with true if macros expansions generated by the 'expand-macros' + /// option should be converted to events. + /// + /// This is controlled by the 'expand-macros-as-events' option, which defaults + /// to false when unset. + bool shouldDisplayMacroExpansionsAsEvents(); + /// Returns true if SValBuilder should rearrange comparisons and additive /// operations of symbolic expressions which consist of a sum of a symbol and /// a concrete integer into the format where symbols are on the left-hand Index: lib/StaticAnalyzer/Core/AnalyzerOptions.cpp =================================================================== --- lib/StaticAnalyzer/Core/AnalyzerOptions.cpp +++ lib/StaticAnalyzer/Core/AnalyzerOptions.cpp @@ -470,6 +470,13 @@ return DisplayMacroExpansions.getValue(); } +bool AnalyzerOptions::shouldDisplayMacroExpansionsAsEvents() { + if (!DisplayMacroExpansionsAsEvents.hasValue()) + DisplayMacroExpansionsAsEvents = + getBooleanOption("expand-macros-as-events", /*Default=*/false); + return DisplayMacroExpansionsAsEvents.getValue(); +} + bool AnalyzerOptions::shouldAggressivelySimplifyBinaryOperation() { if (!AggressiveBinaryOperationSimplification.hasValue()) AggressiveBinaryOperationSimplification = Index: lib/StaticAnalyzer/Core/PlistDiagnostics.cpp =================================================================== --- lib/StaticAnalyzer/Core/PlistDiagnostics.cpp +++ lib/StaticAnalyzer/Core/PlistDiagnostics.cpp @@ -290,28 +290,33 @@ << EI.Expansion << '\''; } - Indent(o, indent) << "\n"; - ++indent; + if (AnOpts.shouldDisplayMacroExpansionsAsEvents()) { + ReportEvent(o, PathDiagnosticEventPiece(P.getLocation(), MacroOS.str()), + FM, PP, indent, depth); + } else { + Indent(o, indent) << "\n"; + ++indent; - Indent(o, indent) << "kindmacro_expansion\n"; + Indent(o, indent) << "kindmacro_expansion\n"; - // Output the location. - FullSourceLoc L = P.getLocation().asLocation(); + // Output the location. + FullSourceLoc L = P.getLocation().asLocation(); - Indent(o, indent) << "location\n"; - EmitLocation(o, SM, L, FM, indent); + Indent(o, indent) << "location\n"; + EmitLocation(o, SM, L, FM, indent); - // Output the ranges (if any). - ArrayRef Ranges = P.getRanges(); - EmitRanges(o, Ranges, FM, PP, indent); + // Output the ranges (if any). + ArrayRef Ranges = P.getRanges(); + EmitRanges(o, Ranges, FM, PP, indent); - // Output the text. - EmitMessage(o, MacroOS.str(), indent); + // Output the text. + EmitMessage(o, MacroOS.str(), indent); - // Finish up. - --indent; - Indent(o, indent); - o << "\n"; + // Finish up. + --indent; + Indent(o, indent); + o << "\n"; + } for (PathPieces::const_iterator I = P.subPieces.begin(), E = P.subPieces.end(); Index: test/Analysis/Inputs/expected-plists/plist-macros-with-expansion.cpp-as-events.plist =================================================================== --- /dev/null +++ test/Analysis/Inputs/expected-plists/plist-macros-with-expansion.cpp-as-events.plist @@ -0,0 +1,4114 @@ + + + + + clang_version +clang version 8.0.0 (http://mainstream.inf.elte.hu/Szelethus/clang e47fcb3afcb379ec90a6bfe6ea75691ce69bac6e) (https://github.com/llvm-mirror/llvm 1ffbf26a1a0a190d69327af875a3337b74a2ce82) + diagnostics + + + path + + + kindcontrol + edges + + + start + + + line34 + col3 + file0 + + + line34 + col5 + file0 + + + end + + + line35 + col3 + file0 + + + line35 + col21 + file0 + + + + + + + kindevent + location + + line35 + col3 + file0 + + depth0 + extended_message + Expanding macro 'SET_PTR_VAR_TO_NULL' to 'ptr = 0 ' + message + Expanding macro 'SET_PTR_VAR_TO_NULL' to 'ptr = 0 ' + + + kindevent + location + + line35 + col3 + file0 + + ranges + + + + line35 + col3 + file0 + + + line35 + col21 + file0 + + + + depth0 + extended_message + Null pointer value stored to 'ptr' + message + Null pointer value stored to 'ptr' + + + kindcontrol + edges + + + start + + + line36 + col3 + file0 + + + line36 + col3 + file0 + + + end + + + line36 + col8 + file0 + + + line36 + col8 + file0 + + + + + + + kindevent + location + + line36 + col8 + file0 + + ranges + + + + line36 + col4 + file0 + + + line36 + col6 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'ptr') + message + Dereference of null pointer (loaded from variable 'ptr') + + + descriptionDereference of null pointer (loaded from variable 'ptr') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_contextf8fbc46cc5afbb056d92bd3d3d702781 + issue_context_kindfunction + issue_contextnonFunctionLikeMacroTest + issue_hash_function_offset3 + location + + line36 + col8 + file0 + + ExecutedLines + + 0 + + 33 + 34 + 35 + 36 + + + + + path + + + kindcontrol + edges + + + start + + + line46 + col3 + file0 + + + line46 + col5 + file0 + + + end + + + line47 + col3 + file0 + + + line47 + col39 + file0 + + + + + + + kindevent + location + + line47 + col3 + file0 + + depth0 + extended_message + Expanding macro 'SET_PTR_VAR_TO_NULL_WITH_NESTED_MACRO' to 'ptr = 0 ' + message + Expanding macro 'SET_PTR_VAR_TO_NULL_WITH_NESTED_MACRO' to 'ptr = 0 ' + + + kindevent + location + + line47 + col3 + file0 + + ranges + + + + line47 + col3 + file0 + + + line47 + col39 + file0 + + + + depth0 + extended_message + Null pointer value stored to 'ptr' + message + Null pointer value stored to 'ptr' + + + kindcontrol + edges + + + start + + + line48 + col3 + file0 + + + line48 + col3 + file0 + + + end + + + line48 + col8 + file0 + + + line48 + col8 + file0 + + + + + + + kindevent + location + + line48 + col8 + file0 + + ranges + + + + line48 + col4 + file0 + + + line48 + col6 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'ptr') + message + Dereference of null pointer (loaded from variable 'ptr') + + + descriptionDereference of null pointer (loaded from variable 'ptr') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_contextd5eba61193b41c27fc7b2705cbd607ba + issue_context_kindfunction + issue_contextnonFunctionLikeNestedMacroTest + issue_hash_function_offset3 + location + + line48 + col8 + file0 + + ExecutedLines + + 0 + + 45 + 46 + 47 + 48 + + + + + path + + + kindcontrol + edges + + + start + + + line65 + col3 + file0 + + + line65 + col5 + file0 + + + end + + + line66 + col3 + file0 + + + line66 + col9 + file0 + + + + + + + kindevent + location + + line66 + col3 + file0 + + depth0 + extended_message + Expanding macro 'TO_NULL' to 'setToNull ( & ptr ) ' + message + Expanding macro 'TO_NULL' to 'setToNull ( & ptr ) ' + + + kindevent + location + + line66 + col3 + file0 + + ranges + + + + line66 + col3 + file0 + + + line66 + col15 + file0 + + + + depth0 + extended_message + Calling 'setToNull' + message + Calling 'setToNull' + + + kindevent + location + + line57 + col1 + file0 + + depth1 + extended_message + Entered call from 'functionLikeMacroTest' + message + Entered call from 'functionLikeMacroTest' + + + kindcontrol + edges + + + start + + + line57 + col1 + file0 + + + line57 + col4 + file0 + + + end + + + line58 + col3 + file0 + + + line58 + col3 + file0 + + + + + + + kindevent + location + + line58 + col3 + file0 + + ranges + + + + line58 + col3 + file0 + + + line58 + col17 + file0 + + + + depth1 + extended_message + Null pointer value stored to 'ptr' + message + Null pointer value stored to 'ptr' + + + kindevent + location + + line66 + col3 + file0 + + ranges + + + + line66 + col3 + file0 + + + line66 + col15 + file0 + + + + depth0 + extended_message + Returning from 'setToNull' + message + Returning from 'setToNull' + + + kindcontrol + edges + + + start + + + line67 + col3 + file0 + + + line67 + col3 + file0 + + + end + + + line67 + col8 + file0 + + + line67 + col8 + file0 + + + + + + + kindevent + location + + line67 + col8 + file0 + + ranges + + + + line67 + col4 + file0 + + + line67 + col6 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'ptr') + message + Dereference of null pointer (loaded from variable 'ptr') + + + descriptionDereference of null pointer (loaded from variable 'ptr') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_context370a457744311752aac789447b4ef16c + issue_context_kindfunction + issue_contextfunctionLikeMacroTest + issue_hash_function_offset3 + location + + line67 + col8 + file0 + + ExecutedLines + + 0 + + 57 + 58 + 64 + 65 + 66 + 67 + + + + + path + + + kindcontrol + edges + + + start + + + line84 + col3 + file0 + + + line84 + col5 + file0 + + + end + + + line85 + col3 + file0 + + + line85 + col9 + file0 + + + + + + + kindevent + location + + line85 + col3 + file0 + + depth0 + extended_message + Expanding macro 'TO_NULL' to 'setToNull ( & a ) ' + message + Expanding macro 'TO_NULL' to 'setToNull ( & a ) ' + + + kindevent + location + + line85 + col3 + file0 + + ranges + + + + line85 + col3 + file0 + + + line85 + col13 + file0 + + + + depth0 + extended_message + Calling 'setToNull' + message + Calling 'setToNull' + + + kindevent + location + + line57 + col1 + file0 + + depth1 + extended_message + Entered call from 'functionLikeNestedMacroTest' + message + Entered call from 'functionLikeNestedMacroTest' + + + kindcontrol + edges + + + start + + + line57 + col1 + file0 + + + line57 + col4 + file0 + + + end + + + line58 + col3 + file0 + + + line58 + col3 + file0 + + + + + + + kindevent + location + + line58 + col3 + file0 + + ranges + + + + line58 + col3 + file0 + + + line58 + col17 + file0 + + + + depth1 + extended_message + Null pointer value stored to 'a' + message + Null pointer value stored to 'a' + + + kindevent + location + + line85 + col3 + file0 + + ranges + + + + line85 + col3 + file0 + + + line85 + col13 + file0 + + + + depth0 + extended_message + Returning from 'setToNull' + message + Returning from 'setToNull' + + + kindevent + location + + line86 + col3 + file0 + + depth0 + extended_message + Expanding macro 'DEREF' to '{ int b ; b = 5 ; } print ( a ) ; * a ' + message + Expanding macro 'DEREF' to '{ int b ; b = 5 ; } print ( a ) ; * a ' + + + kindevent + location + + line86 + col12 + file0 + + ranges + + + + line86 + col3 + file0 + + + line86 + col10 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'a') + message + Dereference of null pointer (loaded from variable 'a') + + + descriptionDereference of null pointer (loaded from variable 'a') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_context873802674657bba4565f64c7bbf0ded9 + issue_context_kindfunction + issue_contextfunctionLikeNestedMacroTest + issue_hash_function_offset3 + location + + line86 + col12 + file0 + + ExecutedLines + + 0 + + 57 + 58 + 83 + 84 + 85 + 86 + + + + + path + + + kindcontrol + edges + + + start + + + line109 + col3 + file0 + + + line109 + col5 + file0 + + + end + + + line110 + col3 + file0 + + + line110 + col19 + file0 + + + + + + + kindevent + location + + line110 + col3 + file0 + + depth0 + extended_message + Expanding macro 'TO_NULL_AND_PRINT' to 'a = 0 ; print ( "Will this , cause a crash?" ) ' + message + Expanding macro 'TO_NULL_AND_PRINT' to 'a = 0 ; print ( "Will this , cause a crash?" ) ' + + + kindevent + location + + line110 + col3 + file0 + + ranges + + + + line110 + col3 + file0 + + + line110 + col52 + file0 + + + + depth0 + extended_message + Null pointer value stored to 'a' + message + Null pointer value stored to 'a' + + + kindcontrol + edges + + + start + + + line111 + col3 + file0 + + + line111 + col3 + file0 + + + end + + + line111 + col6 + file0 + + + line111 + col6 + file0 + + + + + + + kindevent + location + + line111 + col6 + file0 + + ranges + + + + line111 + col4 + file0 + + + line111 + col4 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'a') + message + Dereference of null pointer (loaded from variable 'a') + + + descriptionDereference of null pointer (loaded from variable 'a') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_context7a7344244350405a514682fe228e304e + issue_context_kindfunction + issue_contextmacroArgContainsCommaInStringTest + issue_hash_function_offset3 + location + + line111 + col6 + file0 + + ExecutedLines + + 0 + + 108 + 109 + 110 + 111 + + + + + path + + + kindcontrol + edges + + + start + + + line117 + col3 + file0 + + + line117 + col5 + file0 + + + end + + + line118 + col3 + file0 + + + line118 + col19 + file0 + + + + + + + kindevent + location + + line118 + col3 + file0 + + depth0 + extended_message + Expanding macro 'TO_NULL_AND_PRINT' to 'a = 0 ; print ( "Will this ( cause a crash?" ) ' + message + Expanding macro 'TO_NULL_AND_PRINT' to 'a = 0 ; print ( "Will this ( cause a crash?" ) ' + + + kindevent + location + + line118 + col3 + file0 + + ranges + + + + line118 + col3 + file0 + + + line118 + col52 + file0 + + + + depth0 + extended_message + Null pointer value stored to 'a' + message + Null pointer value stored to 'a' + + + kindcontrol + edges + + + start + + + line119 + col3 + file0 + + + line119 + col3 + file0 + + + end + + + line119 + col6 + file0 + + + line119 + col6 + file0 + + + + + + + kindevent + location + + line119 + col6 + file0 + + ranges + + + + line119 + col4 + file0 + + + line119 + col4 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'a') + message + Dereference of null pointer (loaded from variable 'a') + + + descriptionDereference of null pointer (loaded from variable 'a') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_context1d6d14e3f566cec02bd1f3542e3c8044 + issue_context_kindfunction + issue_contextmacroArgContainsLParenInStringTest + issue_hash_function_offset3 + location + + line119 + col6 + file0 + + ExecutedLines + + 0 + + 116 + 117 + 118 + 119 + + + + + path + + + kindcontrol + edges + + + start + + + line125 + col3 + file0 + + + line125 + col5 + file0 + + + end + + + line126 + col3 + file0 + + + line126 + col19 + file0 + + + + + + + kindevent + location + + line126 + col3 + file0 + + depth0 + extended_message + Expanding macro 'TO_NULL_AND_PRINT' to 'a = 0 ; print ( "Will this ) cause a crash?" ) ' + message + Expanding macro 'TO_NULL_AND_PRINT' to 'a = 0 ; print ( "Will this ) cause a crash?" ) ' + + + kindevent + location + + line126 + col3 + file0 + + ranges + + + + line126 + col3 + file0 + + + line126 + col52 + file0 + + + + depth0 + extended_message + Null pointer value stored to 'a' + message + Null pointer value stored to 'a' + + + kindcontrol + edges + + + start + + + line127 + col3 + file0 + + + line127 + col3 + file0 + + + end + + + line127 + col6 + file0 + + + line127 + col6 + file0 + + + + + + + kindevent + location + + line127 + col6 + file0 + + ranges + + + + line127 + col4 + file0 + + + line127 + col4 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'a') + message + Dereference of null pointer (loaded from variable 'a') + + + descriptionDereference of null pointer (loaded from variable 'a') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_context7354d762d71f0d0a3ffc9d6d827fe580 + issue_context_kindfunction + issue_contextmacroArgContainsRParenInStringTest + issue_hash_function_offset3 + location + + line127 + col6 + file0 + + ExecutedLines + + 0 + + 124 + 125 + 126 + 127 + + + + + path + + + kindcontrol + edges + + + start + + + line138 + col3 + file0 + + + line138 + col5 + file0 + + + end + + + line139 + col3 + file0 + + + line139 + col15 + file0 + + + + + + + kindevent + location + + line139 + col3 + file0 + + depth0 + extended_message + Expanding macro 'CALL_FUNCTION' to 'setToNull ( & a ) ' + message + Expanding macro 'CALL_FUNCTION' to 'setToNull ( & a ) ' + + + kindevent + location + + line139 + col3 + file0 + + ranges + + + + line139 + col3 + file0 + + + line139 + col30 + file0 + + + + depth0 + extended_message + Calling 'setToNull' + message + Calling 'setToNull' + + + kindevent + location + + line57 + col1 + file0 + + depth1 + extended_message + Entered call from 'macroArgContainsLParenRParenTest' + message + Entered call from 'macroArgContainsLParenRParenTest' + + + kindcontrol + edges + + + start + + + line57 + col1 + file0 + + + line57 + col4 + file0 + + + end + + + line58 + col3 + file0 + + + line58 + col3 + file0 + + + + + + + kindevent + location + + line58 + col3 + file0 + + ranges + + + + line58 + col3 + file0 + + + line58 + col17 + file0 + + + + depth1 + extended_message + Null pointer value stored to 'a' + message + Null pointer value stored to 'a' + + + kindevent + location + + line139 + col3 + file0 + + ranges + + + + line139 + col3 + file0 + + + line139 + col30 + file0 + + + + depth0 + extended_message + Returning from 'setToNull' + message + Returning from 'setToNull' + + + kindcontrol + edges + + + start + + + line140 + col3 + file0 + + + line140 + col3 + file0 + + + end + + + line140 + col6 + file0 + + + line140 + col6 + file0 + + + + + + + kindevent + location + + line140 + col6 + file0 + + ranges + + + + line140 + col4 + file0 + + + line140 + col4 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'a') + message + Dereference of null pointer (loaded from variable 'a') + + + descriptionDereference of null pointer (loaded from variable 'a') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_contextf00b6f77288a374e864a58609e9a42ea + issue_context_kindfunction + issue_contextmacroArgContainsLParenRParenTest + issue_hash_function_offset3 + location + + line140 + col6 + file0 + + ExecutedLines + + 0 + + 57 + 58 + 137 + 138 + 139 + 140 + + + + + path + + + kindcontrol + edges + + + start + + + line151 + col3 + file0 + + + line151 + col5 + file0 + + + end + + + line152 + col3 + file0 + + + line152 + col15 + file0 + + + + + + + kindevent + location + + line152 + col3 + file0 + + depth0 + extended_message + Expanding macro 'CALL_FUNCTION' to 'setToNullAndPrint ( & a , "Hello!" ) ' + message + Expanding macro 'CALL_FUNCTION' to 'setToNullAndPrint ( & a , "Hello!" ) ' + + + kindevent + location + + line152 + col3 + file0 + + ranges + + + + line152 + col3 + file0 + + + line152 + col48 + file0 + + + + depth0 + extended_message + Calling 'setToNullAndPrint' + message + Calling 'setToNullAndPrint' + + + kindevent + location + + line145 + col1 + file0 + + depth1 + extended_message + Entered call from 'macroArgContainsCommaLParenRParenTest' + message + Entered call from 'macroArgContainsCommaLParenRParenTest' + + + kindcontrol + edges + + + start + + + line145 + col1 + file0 + + + line145 + col4 + file0 + + + end + + + line146 + col3 + file0 + + + line146 + col11 + file0 + + + + + + + kindevent + location + + line146 + col3 + file0 + + ranges + + + + line146 + col3 + file0 + + + line146 + col17 + file0 + + + + depth1 + extended_message + Calling 'setToNull' + message + Calling 'setToNull' + + + kindevent + location + + line57 + col1 + file0 + + depth2 + extended_message + Entered call from 'setToNullAndPrint' + message + Entered call from 'setToNullAndPrint' + + + kindcontrol + edges + + + start + + + line57 + col1 + file0 + + + line57 + col4 + file0 + + + end + + + line58 + col3 + file0 + + + line58 + col3 + file0 + + + + + + + kindevent + location + + line58 + col3 + file0 + + ranges + + + + line58 + col3 + file0 + + + line58 + col17 + file0 + + + + depth2 + extended_message + Null pointer value stored to 'a' + message + Null pointer value stored to 'a' + + + kindevent + location + + line146 + col3 + file0 + + ranges + + + + line146 + col3 + file0 + + + line146 + col17 + file0 + + + + depth1 + extended_message + Returning from 'setToNull' + message + Returning from 'setToNull' + + + kindcontrol + edges + + + start + + + line146 + col3 + file0 + + + line146 + col11 + file0 + + + end + + + line147 + col3 + file0 + + + line147 + col7 + file0 + + + + + + + kindevent + location + + line152 + col3 + file0 + + ranges + + + + line152 + col3 + file0 + + + line152 + col48 + file0 + + + + depth0 + extended_message + Returning from 'setToNullAndPrint' + message + Returning from 'setToNullAndPrint' + + + kindcontrol + edges + + + start + + + line153 + col3 + file0 + + + line153 + col3 + file0 + + + end + + + line153 + col6 + file0 + + + line153 + col6 + file0 + + + + + + + kindevent + location + + line153 + col6 + file0 + + ranges + + + + line153 + col4 + file0 + + + line153 + col4 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'a') + message + Dereference of null pointer (loaded from variable 'a') + + + descriptionDereference of null pointer (loaded from variable 'a') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_contextc5805abeb71bb4edb41b49ab317439b9 + issue_context_kindfunction + issue_contextmacroArgContainsCommaLParenRParenTest + issue_hash_function_offset3 + location + + line153 + col6 + file0 + + ExecutedLines + + 0 + + 57 + 58 + 145 + 146 + 147 + 150 + 151 + 152 + 153 + + + + + path + + + kindcontrol + edges + + + start + + + line162 + col3 + file0 + + + line162 + col5 + file0 + + + end + + + line163 + col3 + file0 + + + line163 + col31 + file0 + + + + + + + kindevent + location + + line163 + col3 + file0 + + depth0 + extended_message + Expanding macro 'CALL_FUNCTION_WITH_TWO_PARAMS' to 'setToNullAndPrint ( & a , "Hello!" ) ' + message + Expanding macro 'CALL_FUNCTION_WITH_TWO_PARAMS' to 'setToNullAndPrint ( & a , "Hello!" ) ' + + + kindevent + location + + line163 + col3 + file0 + + ranges + + + + line163 + col3 + file0 + + + line163 + col64 + file0 + + + + depth0 + extended_message + Calling 'setToNullAndPrint' + message + Calling 'setToNullAndPrint' + + + kindevent + location + + line145 + col1 + file0 + + depth1 + extended_message + Entered call from 'macroArgContainsCommaLParenRParenTest2' + message + Entered call from 'macroArgContainsCommaLParenRParenTest2' + + + kindcontrol + edges + + + start + + + line145 + col1 + file0 + + + line145 + col4 + file0 + + + end + + + line146 + col3 + file0 + + + line146 + col11 + file0 + + + + + + + kindevent + location + + line146 + col3 + file0 + + ranges + + + + line146 + col3 + file0 + + + line146 + col17 + file0 + + + + depth1 + extended_message + Calling 'setToNull' + message + Calling 'setToNull' + + + kindevent + location + + line57 + col1 + file0 + + depth2 + extended_message + Entered call from 'setToNullAndPrint' + message + Entered call from 'setToNullAndPrint' + + + kindcontrol + edges + + + start + + + line57 + col1 + file0 + + + line57 + col4 + file0 + + + end + + + line58 + col3 + file0 + + + line58 + col3 + file0 + + + + + + + kindevent + location + + line58 + col3 + file0 + + ranges + + + + line58 + col3 + file0 + + + line58 + col17 + file0 + + + + depth2 + extended_message + Null pointer value stored to 'a' + message + Null pointer value stored to 'a' + + + kindevent + location + + line146 + col3 + file0 + + ranges + + + + line146 + col3 + file0 + + + line146 + col17 + file0 + + + + depth1 + extended_message + Returning from 'setToNull' + message + Returning from 'setToNull' + + + kindcontrol + edges + + + start + + + line146 + col3 + file0 + + + line146 + col11 + file0 + + + end + + + line147 + col3 + file0 + + + line147 + col7 + file0 + + + + + + + kindevent + location + + line163 + col3 + file0 + + ranges + + + + line163 + col3 + file0 + + + line163 + col64 + file0 + + + + depth0 + extended_message + Returning from 'setToNullAndPrint' + message + Returning from 'setToNullAndPrint' + + + kindcontrol + edges + + + start + + + line164 + col3 + file0 + + + line164 + col3 + file0 + + + end + + + line164 + col6 + file0 + + + line164 + col6 + file0 + + + + + + + kindevent + location + + line164 + col6 + file0 + + ranges + + + + line164 + col4 + file0 + + + line164 + col4 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'a') + message + Dereference of null pointer (loaded from variable 'a') + + + descriptionDereference of null pointer (loaded from variable 'a') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_context4014a22ef054933e6ce9be43623ea85e + issue_context_kindfunction + issue_contextmacroArgContainsCommaLParenRParenTest2 + issue_hash_function_offset3 + location + + line164 + col6 + file0 + + ExecutedLines + + 0 + + 57 + 58 + 145 + 146 + 147 + 161 + 162 + 163 + 164 + + + + + path + + + kindcontrol + edges + + + start + + + line173 + col3 + file0 + + + line173 + col5 + file0 + + + end + + + line177 + col3 + file0 + + + line177 + col13 + file0 + + + + + + + kindevent + location + + line177 + col3 + file0 + + depth0 + extended_message + Expanding macro 'CALL_LAMBDA' to '( [ & ptr , str ] ( ) mutable { TO_NULL ( & ptr ) ; } ) ( ) ' + message + Expanding macro 'CALL_LAMBDA' to '( [ & ptr , str ] ( ) mutable { TO_NULL ( & ptr ) ; } ) ( ) ' + + + kindevent + location + + line177 + col3 + file0 + + ranges + + + + line177 + col3 + file0 + + + line177 + col58 + file0 + + + + depth0 + extended_message + Calling 'operator()' + message + Calling 'operator()' + + + kindevent + location + + line177 + col3 + file0 + + depth1 + extended_message + Entered call from 'commaInBracketsTest' + message + Entered call from 'commaInBracketsTest' + + + kindevent + location + + line177 + col3 + file0 + + depth1 + extended_message + Expanding macro 'CALL_LAMBDA' to '( [ & ptr , str ] ( ) mutable { TO_NULL ( & ptr ) ; } ) ( ) ' + message + Expanding macro 'CALL_LAMBDA' to '( [ & ptr , str ] ( ) mutable { TO_NULL ( & ptr ) ; } ) ( ) ' + + + kindevent + location + + line177 + col3 + file0 + + ranges + + + + line177 + col3 + file0 + + + line177 + col58 + file0 + + + + depth1 + extended_message + Calling 'setToNull' + message + Calling 'setToNull' + + + kindevent + location + + line57 + col1 + file0 + + depth2 + extended_message + Entered call from 'operator()' + message + Entered call from 'operator()' + + + kindcontrol + edges + + + start + + + line57 + col1 + file0 + + + line57 + col4 + file0 + + + end + + + line58 + col3 + file0 + + + line58 + col3 + file0 + + + + + + + kindevent + location + + line58 + col3 + file0 + + ranges + + + + line58 + col3 + file0 + + + line58 + col17 + file0 + + + + depth2 + extended_message + Null pointer value stored to 'ptr' + message + Null pointer value stored to 'ptr' + + + kindevent + location + + line177 + col3 + file0 + + ranges + + + + line177 + col3 + file0 + + + line177 + col58 + file0 + + + + depth1 + extended_message + Returning from 'setToNull' + message + Returning from 'setToNull' + + + kindevent + location + + line177 + col3 + file0 + + ranges + + + + line177 + col3 + file0 + + + line177 + col58 + file0 + + + + depth0 + extended_message + Returning from 'operator()' + message + Returning from 'operator()' + + + kindcontrol + edges + + + start + + + line178 + col3 + file0 + + + line178 + col3 + file0 + + + end + + + line178 + col8 + file0 + + + line178 + col8 + file0 + + + + + + + kindevent + location + + line178 + col8 + file0 + + ranges + + + + line178 + col4 + file0 + + + line178 + col6 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'ptr') + message + Dereference of null pointer (loaded from variable 'ptr') + + + descriptionDereference of null pointer (loaded from variable 'ptr') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_contexta8918c38ddfa6a991701e7d19c9cd6bb + issue_context_kindfunction + issue_contextcommaInBracketsTest + issue_hash_function_offset6 + location + + line178 + col8 + file0 + + ExecutedLines + + 0 + + 57 + 58 + 172 + 173 + 174 + 177 + 178 + + + + + path + + + kindevent + location + + line187 + col3 + file0 + + depth0 + extended_message + Expanding macro 'PASTE_CODE' to '{ int * ptr = nullptr ; * ptr = 5 ; } ' + message + Expanding macro 'PASTE_CODE' to '{ int * ptr = nullptr ; * ptr = 5 ; } ' + + + kindevent + location + + line187 + col3 + file0 + + ranges + + + + line187 + col3 + file0 + + + line195 + col4 + file0 + + + + depth0 + extended_message + 'ptr' initialized to a null pointer value + message + 'ptr' initialized to a null pointer value + + + kindevent + location + + line187 + col3 + file0 + + ranges + + + + line187 + col3 + file0 + + + line195 + col4 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'ptr') + message + Dereference of null pointer (loaded from variable 'ptr') + + + descriptionDereference of null pointer (loaded from variable 'ptr') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_context63042e03ae0d2f3832b141a63b1d4d49 + issue_context_kindfunction + issue_contextcommaInBracesTest + issue_hash_function_offset1 + location + + line187 + col3 + file0 + + ExecutedLines + + 0 + + 186 + 187 + + + + + path + + + kindcontrol + edges + + + start + + + line208 + col3 + file0 + + + line208 + col5 + file0 + + + end + + + line210 + col3 + file0 + + + line210 + col25 + file0 + + + + + + + kindevent + location + + line210 + col3 + file0 + + depth0 + extended_message + Expanding macro 'POTENTIALLY_EMPTY_PARAM' to '; ptr = nullptr ' + message + Expanding macro 'POTENTIALLY_EMPTY_PARAM' to '; ptr = nullptr ' + + + kindevent + location + + line210 + col3 + file0 + + ranges + + + + line210 + col3 + file0 + + + line210 + col31 + file0 + + + + depth0 + extended_message + Null pointer value stored to 'ptr' + message + Null pointer value stored to 'ptr' + + + kindcontrol + edges + + + start + + + line211 + col3 + file0 + + + line211 + col3 + file0 + + + end + + + line211 + col8 + file0 + + + line211 + col8 + file0 + + + + + + + kindevent + location + + line211 + col8 + file0 + + ranges + + + + line211 + col4 + file0 + + + line211 + col6 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'ptr') + message + Dereference of null pointer (loaded from variable 'ptr') + + + descriptionDereference of null pointer (loaded from variable 'ptr') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_contextcd980e278fbcd8f77bbeac79285084e2 + issue_context_kindfunction + issue_contextemptyParamTest + issue_hash_function_offset4 + location + + line211 + col8 + file0 + + ExecutedLines + + 0 + + 207 + 208 + 210 + 211 + + + + + path + + + kindcontrol + edges + + + start + + + line221 + col3 + file0 + + + line221 + col5 + file0 + + + end + + + line223 + col3 + file0 + + + line223 + col20 + file0 + + + + + + + kindevent + location + + line223 + col3 + file0 + + depth0 + extended_message + Expanding macro 'NESTED_EMPTY_PARAM' to '; ptr = nullptr ; ' + message + Expanding macro 'NESTED_EMPTY_PARAM' to '; ptr = nullptr ; ' + + + kindevent + location + + line223 + col3 + file0 + + ranges + + + + line223 + col3 + file0 + + + line223 + col27 + file0 + + + + depth0 + extended_message + Null pointer value stored to 'ptr' + message + Null pointer value stored to 'ptr' + + + kindcontrol + edges + + + start + + + line224 + col3 + file0 + + + line224 + col3 + file0 + + + end + + + line224 + col8 + file0 + + + line224 + col8 + file0 + + + + + + + kindevent + location + + line224 + col8 + file0 + + ranges + + + + line224 + col4 + file0 + + + line224 + col6 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'ptr') + message + Dereference of null pointer (loaded from variable 'ptr') + + + descriptionDereference of null pointer (loaded from variable 'ptr') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_contextf6a5f6c93b6e3734842ddabd3d5a7341 + issue_context_kindfunction + issue_contextnestedEmptyParamTest + issue_hash_function_offset4 + location + + line224 + col8 + file0 + + ExecutedLines + + 0 + + 220 + 221 + 223 + 224 + + + + + path + + + kindcontrol + edges + + + start + + + line233 + col3 + file0 + + + line233 + col5 + file0 + + + end + + + line234 + col3 + file0 + + + line234 + col44 + file0 + + + + + + + kindevent + location + + line234 + col3 + file0 + + depth0 + extended_message + Expanding macro 'CALL_FUNCTION_WITH_ONE_PARAM_THROUGH_MACRO' to 'setToNull ( & ptr ) ' + message + Expanding macro 'CALL_FUNCTION_WITH_ONE_PARAM_THROUGH_MACRO' to 'setToNull ( & ptr ) ' + + + kindevent + location + + line234 + col3 + file0 + + ranges + + + + line234 + col3 + file0 + + + line234 + col61 + file0 + + + + depth0 + extended_message + Calling 'setToNull' + message + Calling 'setToNull' + + + kindevent + location + + line57 + col1 + file0 + + depth1 + extended_message + Entered call from 'lParenRParenInNestedMacro' + message + Entered call from 'lParenRParenInNestedMacro' + + + kindcontrol + edges + + + start + + + line57 + col1 + file0 + + + line57 + col4 + file0 + + + end + + + line58 + col3 + file0 + + + line58 + col3 + file0 + + + + + + + kindevent + location + + line58 + col3 + file0 + + ranges + + + + line58 + col3 + file0 + + + line58 + col17 + file0 + + + + depth1 + extended_message + Null pointer value stored to 'ptr' + message + Null pointer value stored to 'ptr' + + + kindevent + location + + line234 + col3 + file0 + + ranges + + + + line234 + col3 + file0 + + + line234 + col61 + file0 + + + + depth0 + extended_message + Returning from 'setToNull' + message + Returning from 'setToNull' + + + kindcontrol + edges + + + start + + + line235 + col3 + file0 + + + line235 + col3 + file0 + + + end + + + line235 + col8 + file0 + + + line235 + col8 + file0 + + + + + + + kindevent + location + + line235 + col8 + file0 + + ranges + + + + line235 + col4 + file0 + + + line235 + col6 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'ptr') + message + Dereference of null pointer (loaded from variable 'ptr') + + + descriptionDereference of null pointer (loaded from variable 'ptr') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_contextff00c8344e685317303e814970082d5f + issue_context_kindfunction + issue_contextlParenRParenInNestedMacro + issue_hash_function_offset3 + location + + line235 + col8 + file0 + + ExecutedLines + + 0 + + 57 + 58 + 232 + 233 + 234 + 235 + + + + + path + + + kindcontrol + edges + + + start + + + line252 + col3 + file0 + + + line252 + col5 + file0 + + + end + + + line253 + col3 + file0 + + + line253 + col22 + file0 + + + + + + + kindevent + location + + line253 + col3 + file0 + + depth0 + extended_message + Expanding macro 'VARIADIC_SET_TO_NULL' to 'ptr = nullptr ; variadicFunc ( 1 ) ' + message + Expanding macro 'VARIADIC_SET_TO_NULL' to 'ptr = nullptr ; variadicFunc ( 1 ) ' + + + kindevent + location + + line253 + col3 + file0 + + ranges + + + + line253 + col3 + file0 + + + line253 + col42 + file0 + + + + depth0 + extended_message + Null pointer value stored to 'ptr' + message + Null pointer value stored to 'ptr' + + + kindcontrol + edges + + + start + + + line254 + col3 + file0 + + + line254 + col3 + file0 + + + end + + + line254 + col8 + file0 + + + line254 + col8 + file0 + + + + + + + kindevent + location + + line254 + col8 + file0 + + ranges + + + + line254 + col4 + file0 + + + line254 + col6 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'ptr') + message + Dereference of null pointer (loaded from variable 'ptr') + + + descriptionDereference of null pointer (loaded from variable 'ptr') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_context1b0880549df23e9ce0edb60955ad5ac1 + issue_context_kindfunction + issue_contextvariadicMacroArgumentTest + issue_hash_function_offset3 + location + + line254 + col8 + file0 + + ExecutedLines + + 0 + + 251 + 252 + 253 + 254 + + + + + path + + + kindcontrol + edges + + + start + + + line269 + col3 + file0 + + + line269 + col5 + file0 + + + end + + + line270 + col3 + file0 + + + line270 + col30 + file0 + + + + + + + kindevent + location + + line270 + col3 + file0 + + depth0 + extended_message + Expanding macro 'DECLARE_FUNC_AND_SET_TO_NULL' to 'void generated_ ## whatever ( ) ; ptr = nullptr ; ' + message + Expanding macro 'DECLARE_FUNC_AND_SET_TO_NULL' to 'void generated_ ## whatever ( ) ; ptr = nullptr ; ' + + + kindevent + location + + line270 + col3 + file0 + + ranges + + + + line270 + col3 + file0 + + + line270 + col45 + file0 + + + + depth0 + extended_message + Null pointer value stored to 'ptr' + message + Null pointer value stored to 'ptr' + + + kindcontrol + edges + + + start + + + line271 + col3 + file0 + + + line271 + col3 + file0 + + + end + + + line271 + col8 + file0 + + + line271 + col8 + file0 + + + + + + + kindevent + location + + line271 + col8 + file0 + + ranges + + + + line271 + col4 + file0 + + + line271 + col6 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'ptr') + message + Dereference of null pointer (loaded from variable 'ptr') + + + descriptionDereference of null pointer (loaded from variable 'ptr') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_context453ed8096f5394e74e16f965886e5623 + issue_context_kindfunction + issue_contexthashHashOperatorTest + issue_hash_function_offset3 + location + + line271 + col8 + file0 + + ExecutedLines + + 0 + + 268 + 269 + 270 + 271 + + + + + path + + + kindcontrol + edges + + + start + + + line282 + col3 + file0 + + + line282 + col5 + file0 + + + end + + + line283 + col3 + file0 + + + line283 + col11 + file0 + + + + + + + kindevent + location + + line283 + col3 + file0 + + depth0 + extended_message + Expanding macro 'PRINT_STR' to 'print ( # Hello ) ; ptr = nullptr ' + message + Expanding macro 'PRINT_STR' to 'print ( # Hello ) ; ptr = nullptr ' + + + kindevent + location + + line283 + col3 + file0 + + ranges + + + + line283 + col3 + file0 + + + line283 + col23 + file0 + + + + depth0 + extended_message + Null pointer value stored to 'ptr' + message + Null pointer value stored to 'ptr' + + + kindcontrol + edges + + + start + + + line284 + col3 + file0 + + + line284 + col3 + file0 + + + end + + + line284 + col8 + file0 + + + line284 + col8 + file0 + + + + + + + kindevent + location + + line284 + col8 + file0 + + ranges + + + + line284 + col4 + file0 + + + line284 + col6 + file0 + + + + depth0 + extended_message + Dereference of null pointer (loaded from variable 'ptr') + message + Dereference of null pointer (loaded from variable 'ptr') + + + descriptionDereference of null pointer (loaded from variable 'ptr') + categoryLogic error + typeDereference of null pointer + check_namecore.NullDereference + + issue_hash_content_of_line_in_contexte6947ee72df70243a3b4c9e9eaed0888 + issue_context_kindfunction + issue_contexthashOperatorTest + issue_hash_function_offset3 + location + + line284 + col8 + file0 + + ExecutedLines + + 0 + + 281 + 282 + 283 + 284 + + + + + files + + /home/eumakri/Documents/2codechecker_dev_env/llvm/tools/clang/test/Analysis/plist-macros-with-expansion.cpp + + + \ No newline at end of file Index: test/Analysis/Inputs/expected-plists/plist-macros-with-expansion.cpp.plist =================================================================== --- test/Analysis/Inputs/expected-plists/plist-macros-with-expansion.cpp.plist +++ test/Analysis/Inputs/expected-plists/plist-macros-with-expansion.cpp.plist @@ -3,7 +3,7 @@ clang_version -clang version 8.0.0 (http://mainstream.inf.elte.hu/Szelethus/clang 6c803b6a046d17b823017f92c987e34702253b6d) (https://github.com/llvm-mirror/llvm 1ffbf26a1a0a190d69327af875a3337b74a2ce82) +clang version 8.0.0 (http://mainstream.inf.elte.hu/Szelethus/clang e47fcb3afcb379ec90a6bfe6ea75691ce69bac6e) (https://github.com/llvm-mirror/llvm 1ffbf26a1a0a190d69327af875a3337b74a2ce82) diagnostics @@ -17,12 +17,12 @@ start - line25 + line34 col3 file0 - line25 + line34 col5 file0 @@ -30,12 +30,12 @@ end - line26 + line35 col3 file0 - line26 + line35 col21 file0 @@ -47,7 +47,7 @@ kindmacro_expansion location - line26 + line35 col3 file0 @@ -60,7 +60,7 @@ kindevent location - line26 + line35 col3 file0 @@ -68,12 +68,12 @@ - line26 + line35 col3 file0 - line26 + line35 col21 file0 @@ -93,12 +93,12 @@ start - line27 + line36 col3 file0 - line27 + line36 col3 file0 @@ -106,12 +106,12 @@ end - line27 + line36 col8 file0 - line27 + line36 col8 file0 @@ -123,7 +123,7 @@ kindevent location - line27 + line36 col8 file0 @@ -131,12 +131,12 @@ - line27 + line36 col4 file0 - line27 + line36 col6 file0 @@ -160,7 +160,7 @@ issue_hash_function_offset3 location - line27 + line36 col8 file0 @@ -168,10 +168,10 @@ 0 - 24 - 25 - 26 - 27 + 33 + 34 + 35 + 36 @@ -186,12 +186,12 @@ start - line37 + line46 col3 file0 - line37 + line46 col5 file0 @@ -199,12 +199,12 @@ end - line38 + line47 col3 file0 - line38 + line47 col39 file0 @@ -216,7 +216,7 @@ kindmacro_expansion location - line38 + line47 col3 file0 @@ -229,7 +229,7 @@ kindevent location - line38 + line47 col3 file0 @@ -237,12 +237,12 @@ - line38 + line47 col3 file0 - line38 + line47 col39 file0 @@ -262,12 +262,12 @@ start - line39 + line48 col3 file0 - line39 + line48 col3 file0 @@ -275,12 +275,12 @@ end - line39 + line48 col8 file0 - line39 + line48 col8 file0 @@ -292,7 +292,7 @@ kindevent location - line39 + line48 col8 file0 @@ -300,12 +300,12 @@ - line39 + line48 col4 file0 - line39 + line48 col6 file0 @@ -329,7 +329,7 @@ issue_hash_function_offset3 location - line39 + line48 col8 file0 @@ -337,10 +337,10 @@ 0 - 36 - 37 - 38 - 39 + 45 + 46 + 47 + 48 @@ -355,12 +355,12 @@ start - line56 + line65 col3 file0 - line56 + line65 col5 file0 @@ -368,12 +368,12 @@ end - line57 + line66 col3 file0 - line57 + line66 col9 file0 @@ -385,20 +385,20 @@ kindmacro_expansion location - line57 + line66 col3 file0 extended_message - Expanding macro 'TO_NULL' to 'setToNull ( & ptr) ' + Expanding macro 'TO_NULL' to 'setToNull ( & ptr ) ' message - Expanding macro 'TO_NULL' to 'setToNull ( & ptr) ' + Expanding macro 'TO_NULL' to 'setToNull ( & ptr ) ' kindevent location - line57 + line66 col3 file0 @@ -406,12 +406,12 @@ - line57 + line66 col3 file0 - line57 + line66 col15 file0 @@ -427,7 +427,7 @@ kindevent location - line48 + line57 col1 file0 @@ -445,12 +445,12 @@ start - line48 + line57 col1 file0 - line48 + line57 col4 file0 @@ -458,12 +458,12 @@ end - line49 + line58 col3 file0 - line49 + line58 col3 file0 @@ -475,7 +475,7 @@ kindevent location - line49 + line58 col3 file0 @@ -483,12 +483,12 @@ - line49 + line58 col3 file0 - line49 + line58 col17 file0 @@ -504,7 +504,7 @@ kindevent location - line57 + line66 col3 file0 @@ -512,12 +512,12 @@ - line57 + line66 col3 file0 - line57 + line66 col15 file0 @@ -537,12 +537,12 @@ start - line58 + line67 col3 file0 - line58 + line67 col3 file0 @@ -550,12 +550,12 @@ end - line58 + line67 col8 file0 - line58 + line67 col8 file0 @@ -567,7 +567,7 @@ kindevent location - line58 + line67 col8 file0 @@ -575,12 +575,12 @@ - line58 + line67 col4 file0 - line58 + line67 col6 file0 @@ -604,7 +604,7 @@ issue_hash_function_offset3 location - line58 + line67 col8 file0 @@ -612,12 +612,12 @@ 0 - 48 - 49 - 55 - 56 57 58 + 64 + 65 + 66 + 67 @@ -632,12 +632,12 @@ start - line75 + line84 col3 file0 - line75 + line84 col5 file0 @@ -645,12 +645,12 @@ end - line76 + line85 col3 file0 - line76 + line85 col9 file0 @@ -662,20 +662,20 @@ kindmacro_expansion location - line76 + line85 col3 file0 extended_message - Expanding macro 'TO_NULL' to 'setToNull ( & a) ' + Expanding macro 'TO_NULL' to 'setToNull ( & a ) ' message - Expanding macro 'TO_NULL' to 'setToNull ( & a) ' + Expanding macro 'TO_NULL' to 'setToNull ( & a ) ' kindevent location - line76 + line85 col3 file0 @@ -683,12 +683,12 @@ - line76 + line85 col3 file0 - line76 + line85 col13 file0 @@ -704,7 +704,7 @@ kindevent location - line48 + line57 col1 file0 @@ -722,12 +722,12 @@ start - line48 + line57 col1 file0 - line48 + line57 col4 file0 @@ -735,12 +735,12 @@ end - line49 + line58 col3 file0 - line49 + line58 col3 file0 @@ -752,7 +752,7 @@ kindevent location - line49 + line58 col3 file0 @@ -760,12 +760,12 @@ - line49 + line58 col3 file0 - line49 + line58 col17 file0 @@ -781,7 +781,7 @@ kindevent location - line76 + line85 col3 file0 @@ -789,12 +789,12 @@ - line76 + line85 col3 file0 - line76 + line85 col13 file0 @@ -810,20 +810,20 @@ kindmacro_expansion location - line77 + line86 col3 file0 extended_message - Expanding macro 'DEREF' to '{ int b ; b = 5 ; } print ( a) ; * a' + Expanding macro 'DEREF' to '{ int b ; b = 5 ; } print ( a ) ; * a ' message - Expanding macro 'DEREF' to '{ int b ; b = 5 ; } print ( a) ; * a' + Expanding macro 'DEREF' to '{ int b ; b = 5 ; } print ( a ) ; * a ' kindevent location - line77 + line86 col12 file0 @@ -831,12 +831,12 @@ - line77 + line86 col3 file0 - line77 + line86 col10 file0 @@ -860,7 +860,7 @@ issue_hash_function_offset3 location - line77 + line86 col12 file0 @@ -868,12 +868,12 @@ 0 - 48 - 49 - 74 - 75 - 76 - 77 + 57 + 58 + 83 + 84 + 85 + 86 @@ -888,12 +888,12 @@ start - line100 + line109 col3 file0 - line100 + line109 col5 file0 @@ -901,12 +901,12 @@ end - line101 + line110 col3 file0 - line101 + line110 col19 file0 @@ -918,20 +918,20 @@ kindmacro_expansion location - line101 + line110 col3 file0 extended_message - Expanding macro 'TO_NULL_AND_PRINT' to ' a= 0 ; print ( "Will this , cause a crash?") ' + Expanding macro 'TO_NULL_AND_PRINT' to 'a = 0 ; print ( "Will this , cause a crash?" ) ' message - Expanding macro 'TO_NULL_AND_PRINT' to ' a= 0 ; print ( "Will this , cause a crash?") ' + Expanding macro 'TO_NULL_AND_PRINT' to 'a = 0 ; print ( "Will this , cause a crash?" ) ' kindevent location - line101 + line110 col3 file0 @@ -939,12 +939,12 @@ - line101 + line110 col3 file0 - line101 + line110 col52 file0 @@ -964,12 +964,12 @@ start - line102 + line111 col3 file0 - line102 + line111 col3 file0 @@ -977,12 +977,12 @@ end - line102 + line111 col6 file0 - line102 + line111 col6 file0 @@ -994,7 +994,7 @@ kindevent location - line102 + line111 col6 file0 @@ -1002,12 +1002,12 @@ - line102 + line111 col4 file0 - line102 + line111 col4 file0 @@ -1031,7 +1031,7 @@ issue_hash_function_offset3 location - line102 + line111 col6 file0 @@ -1039,10 +1039,10 @@ 0 - 99 - 100 - 101 - 102 + 108 + 109 + 110 + 111 @@ -1057,12 +1057,12 @@ start - line108 + line117 col3 file0 - line108 + line117 col5 file0 @@ -1070,12 +1070,12 @@ end - line109 + line118 col3 file0 - line109 + line118 col19 file0 @@ -1087,20 +1087,20 @@ kindmacro_expansion location - line109 + line118 col3 file0 extended_message - Expanding macro 'TO_NULL_AND_PRINT' to ' a= 0 ; print ( "Will this ( cause a crash?") ' + Expanding macro 'TO_NULL_AND_PRINT' to 'a = 0 ; print ( "Will this ( cause a crash?" ) ' message - Expanding macro 'TO_NULL_AND_PRINT' to ' a= 0 ; print ( "Will this ( cause a crash?") ' + Expanding macro 'TO_NULL_AND_PRINT' to 'a = 0 ; print ( "Will this ( cause a crash?" ) ' kindevent location - line109 + line118 col3 file0 @@ -1108,12 +1108,12 @@ - line109 + line118 col3 file0 - line109 + line118 col52 file0 @@ -1133,12 +1133,12 @@ start - line110 + line119 col3 file0 - line110 + line119 col3 file0 @@ -1146,12 +1146,12 @@ end - line110 + line119 col6 file0 - line110 + line119 col6 file0 @@ -1163,7 +1163,7 @@ kindevent location - line110 + line119 col6 file0 @@ -1171,12 +1171,12 @@ - line110 + line119 col4 file0 - line110 + line119 col4 file0 @@ -1200,7 +1200,7 @@ issue_hash_function_offset3 location - line110 + line119 col6 file0 @@ -1208,10 +1208,10 @@ 0 - 107 - 108 - 109 - 110 + 116 + 117 + 118 + 119 @@ -1226,12 +1226,12 @@ start - line116 + line125 col3 file0 - line116 + line125 col5 file0 @@ -1239,12 +1239,12 @@ end - line117 + line126 col3 file0 - line117 + line126 col19 file0 @@ -1256,20 +1256,20 @@ kindmacro_expansion location - line117 + line126 col3 file0 extended_message - Expanding macro 'TO_NULL_AND_PRINT' to ' a= 0 ; print ( "Will this ) cause a crash?") ' + Expanding macro 'TO_NULL_AND_PRINT' to 'a = 0 ; print ( "Will this ) cause a crash?" ) ' message - Expanding macro 'TO_NULL_AND_PRINT' to ' a= 0 ; print ( "Will this ) cause a crash?") ' + Expanding macro 'TO_NULL_AND_PRINT' to 'a = 0 ; print ( "Will this ) cause a crash?" ) ' kindevent location - line117 + line126 col3 file0 @@ -1277,12 +1277,12 @@ - line117 + line126 col3 file0 - line117 + line126 col52 file0 @@ -1302,12 +1302,12 @@ start - line118 + line127 col3 file0 - line118 + line127 col3 file0 @@ -1315,12 +1315,12 @@ end - line118 + line127 col6 file0 - line118 + line127 col6 file0 @@ -1332,7 +1332,7 @@ kindevent location - line118 + line127 col6 file0 @@ -1340,12 +1340,12 @@ - line118 + line127 col4 file0 - line118 + line127 col4 file0 @@ -1369,7 +1369,7 @@ issue_hash_function_offset3 location - line118 + line127 col6 file0 @@ -1377,10 +1377,10 @@ 0 - 115 - 116 - 117 - 118 + 124 + 125 + 126 + 127 @@ -1395,12 +1395,12 @@ start - line129 + line138 col3 file0 - line129 + line138 col5 file0 @@ -1408,12 +1408,12 @@ end - line130 + line139 col3 file0 - line130 + line139 col15 file0 @@ -1425,20 +1425,20 @@ kindmacro_expansion location - line130 + line139 col3 file0 extended_message - Expanding macro 'CALL_FUNCTION' to ' setToNull ( & a )' + Expanding macro 'CALL_FUNCTION' to 'setToNull ( & a ) ' message - Expanding macro 'CALL_FUNCTION' to ' setToNull ( & a )' + Expanding macro 'CALL_FUNCTION' to 'setToNull ( & a ) ' kindevent location - line130 + line139 col3 file0 @@ -1446,12 +1446,12 @@ - line130 + line139 col3 file0 - line130 + line139 col30 file0 @@ -1467,7 +1467,7 @@ kindevent location - line48 + line57 col1 file0 @@ -1485,12 +1485,12 @@ start - line48 + line57 col1 file0 - line48 + line57 col4 file0 @@ -1498,12 +1498,12 @@ end - line49 + line58 col3 file0 - line49 + line58 col3 file0 @@ -1515,7 +1515,7 @@ kindevent location - line49 + line58 col3 file0 @@ -1523,12 +1523,12 @@ - line49 + line58 col3 file0 - line49 + line58 col17 file0 @@ -1544,7 +1544,7 @@ kindevent location - line130 + line139 col3 file0 @@ -1552,12 +1552,12 @@ - line130 + line139 col3 file0 - line130 + line139 col30 file0 @@ -1577,12 +1577,12 @@ start - line131 + line140 col3 file0 - line131 + line140 col3 file0 @@ -1590,12 +1590,12 @@ end - line131 + line140 col6 file0 - line131 + line140 col6 file0 @@ -1607,7 +1607,7 @@ kindevent location - line131 + line140 col6 file0 @@ -1615,12 +1615,12 @@ - line131 + line140 col4 file0 - line131 + line140 col4 file0 @@ -1644,7 +1644,7 @@ issue_hash_function_offset3 location - line131 + line140 col6 file0 @@ -1652,12 +1652,12 @@ 0 - 48 - 49 - 128 - 129 - 130 - 131 + 57 + 58 + 137 + 138 + 139 + 140 @@ -1672,12 +1672,12 @@ start - line142 + line151 col3 file0 - line142 + line151 col5 file0 @@ -1685,12 +1685,12 @@ end - line143 + line152 col3 file0 - line143 + line152 col15 file0 @@ -1702,20 +1702,20 @@ kindmacro_expansion location - line143 + line152 col3 file0 extended_message - Expanding macro 'CALL_FUNCTION' to ' setToNullAndPrint ( & a , "Hello!" )' + Expanding macro 'CALL_FUNCTION' to 'setToNullAndPrint ( & a , "Hello!" ) ' message - Expanding macro 'CALL_FUNCTION' to ' setToNullAndPrint ( & a , "Hello!" )' + Expanding macro 'CALL_FUNCTION' to 'setToNullAndPrint ( & a , "Hello!" ) ' kindevent location - line143 + line152 col3 file0 @@ -1723,12 +1723,12 @@ - line143 + line152 col3 file0 - line143 + line152 col48 file0 @@ -1744,7 +1744,7 @@ kindevent location - line136 + line145 col1 file0 @@ -1762,12 +1762,12 @@ start - line136 + line145 col1 file0 - line136 + line145 col4 file0 @@ -1775,12 +1775,12 @@ end - line137 + line146 col3 file0 - line137 + line146 col11 file0 @@ -1792,7 +1792,7 @@ kindevent location - line137 + line146 col3 file0 @@ -1800,12 +1800,12 @@ - line137 + line146 col3 file0 - line137 + line146 col17 file0 @@ -1821,7 +1821,7 @@ kindevent location - line48 + line57 col1 file0 @@ -1839,12 +1839,12 @@ start - line48 + line57 col1 file0 - line48 + line57 col4 file0 @@ -1852,12 +1852,12 @@ end - line49 + line58 col3 file0 - line49 + line58 col3 file0 @@ -1869,7 +1869,7 @@ kindevent location - line49 + line58 col3 file0 @@ -1877,12 +1877,12 @@ - line49 + line58 col3 file0 - line49 + line58 col17 file0 @@ -1898,7 +1898,7 @@ kindevent location - line137 + line146 col3 file0 @@ -1906,12 +1906,12 @@ - line137 + line146 col3 file0 - line137 + line146 col17 file0 @@ -1931,12 +1931,12 @@ start - line137 + line146 col3 file0 - line137 + line146 col11 file0 @@ -1944,12 +1944,12 @@ end - line138 + line147 col3 file0 - line138 + line147 col7 file0 @@ -1961,7 +1961,7 @@ kindevent location - line143 + line152 col3 file0 @@ -1969,12 +1969,12 @@ - line143 + line152 col3 file0 - line143 + line152 col48 file0 @@ -1994,12 +1994,12 @@ start - line144 + line153 col3 file0 - line144 + line153 col3 file0 @@ -2007,12 +2007,12 @@ end - line144 + line153 col6 file0 - line144 + line153 col6 file0 @@ -2024,7 +2024,7 @@ kindevent location - line144 + line153 col6 file0 @@ -2032,12 +2032,12 @@ - line144 + line153 col4 file0 - line144 + line153 col4 file0 @@ -2061,7 +2061,7 @@ issue_hash_function_offset3 location - line144 + line153 col6 file0 @@ -2069,15 +2069,15 @@ 0 - 48 - 49 - 136 - 137 - 138 - 141 - 142 - 143 - 144 + 57 + 58 + 145 + 146 + 147 + 150 + 151 + 152 + 153 @@ -2092,12 +2092,12 @@ start - line153 + line162 col3 file0 - line153 + line162 col5 file0 @@ -2105,12 +2105,12 @@ end - line154 + line163 col3 file0 - line154 + line163 col31 file0 @@ -2122,20 +2122,20 @@ kindmacro_expansion location - line154 + line163 col3 file0 extended_message - Expanding macro 'CALL_FUNCTION_WITH_TWO_PARAMS' to ' setToNullAndPrint( & a, "Hello!") ' + Expanding macro 'CALL_FUNCTION_WITH_TWO_PARAMS' to 'setToNullAndPrint ( & a , "Hello!" ) ' message - Expanding macro 'CALL_FUNCTION_WITH_TWO_PARAMS' to ' setToNullAndPrint( & a, "Hello!") ' + Expanding macro 'CALL_FUNCTION_WITH_TWO_PARAMS' to 'setToNullAndPrint ( & a , "Hello!" ) ' kindevent location - line154 + line163 col3 file0 @@ -2143,12 +2143,12 @@ - line154 + line163 col3 file0 - line154 + line163 col64 file0 @@ -2164,7 +2164,7 @@ kindevent location - line136 + line145 col1 file0 @@ -2182,12 +2182,12 @@ start - line136 + line145 col1 file0 - line136 + line145 col4 file0 @@ -2195,12 +2195,12 @@ end - line137 + line146 col3 file0 - line137 + line146 col11 file0 @@ -2212,7 +2212,7 @@ kindevent location - line137 + line146 col3 file0 @@ -2220,12 +2220,12 @@ - line137 + line146 col3 file0 - line137 + line146 col17 file0 @@ -2241,7 +2241,7 @@ kindevent location - line48 + line57 col1 file0 @@ -2259,12 +2259,12 @@ start - line48 + line57 col1 file0 - line48 + line57 col4 file0 @@ -2272,12 +2272,12 @@ end - line49 + line58 col3 file0 - line49 + line58 col3 file0 @@ -2289,7 +2289,7 @@ kindevent location - line49 + line58 col3 file0 @@ -2297,12 +2297,12 @@ - line49 + line58 col3 file0 - line49 + line58 col17 file0 @@ -2318,7 +2318,7 @@ kindevent location - line137 + line146 col3 file0 @@ -2326,12 +2326,12 @@ - line137 + line146 col3 file0 - line137 + line146 col17 file0 @@ -2351,12 +2351,12 @@ start - line137 + line146 col3 file0 - line137 + line146 col11 file0 @@ -2364,12 +2364,12 @@ end - line138 + line147 col3 file0 - line138 + line147 col7 file0 @@ -2381,7 +2381,7 @@ kindevent location - line154 + line163 col3 file0 @@ -2389,12 +2389,12 @@ - line154 + line163 col3 file0 - line154 + line163 col64 file0 @@ -2414,12 +2414,12 @@ start - line155 + line164 col3 file0 - line155 + line164 col3 file0 @@ -2427,12 +2427,12 @@ end - line155 + line164 col6 file0 - line155 + line164 col6 file0 @@ -2444,7 +2444,7 @@ kindevent location - line155 + line164 col6 file0 @@ -2452,12 +2452,12 @@ - line155 + line164 col4 file0 - line155 + line164 col4 file0 @@ -2481,7 +2481,7 @@ issue_hash_function_offset3 location - line155 + line164 col6 file0 @@ -2489,15 +2489,15 @@ 0 - 48 - 49 - 136 - 137 - 138 - 152 - 153 - 154 - 155 + 57 + 58 + 145 + 146 + 147 + 161 + 162 + 163 + 164 @@ -2512,12 +2512,12 @@ start - line164 + line173 col3 file0 - line164 + line173 col5 file0 @@ -2525,12 +2525,12 @@ end - line168 + line177 col3 file0 - line168 + line177 col13 file0 @@ -2542,20 +2542,20 @@ kindmacro_expansion location - line168 + line177 col3 file0 extended_message - Expanding macro 'CALL_LAMBDA' to ' ( [ & ptr , str ] ( ) mutable { TO_NULL ( & ptr ) ; } )( ) ' + Expanding macro 'CALL_LAMBDA' to '( [ & ptr , str ] ( ) mutable { TO_NULL ( & ptr ) ; } ) ( ) ' message - Expanding macro 'CALL_LAMBDA' to ' ( [ & ptr , str ] ( ) mutable { TO_NULL ( & ptr ) ; } )( ) ' + Expanding macro 'CALL_LAMBDA' to '( [ & ptr , str ] ( ) mutable { TO_NULL ( & ptr ) ; } ) ( ) ' kindevent location - line168 + line177 col3 file0 @@ -2563,12 +2563,12 @@ - line168 + line177 col3 file0 - line168 + line177 col58 file0 @@ -2584,7 +2584,7 @@ kindevent location - line168 + line177 col3 file0 @@ -2598,20 +2598,20 @@ kindmacro_expansion location - line168 + line177 col3 file0 extended_message - Expanding macro 'CALL_LAMBDA' to ' ( [ & ptr , str ] ( ) mutable { TO_NULL ( & ptr ) ; } )( ) ' + Expanding macro 'CALL_LAMBDA' to '( [ & ptr , str ] ( ) mutable { TO_NULL ( & ptr ) ; } ) ( ) ' message - Expanding macro 'CALL_LAMBDA' to ' ( [ & ptr , str ] ( ) mutable { TO_NULL ( & ptr ) ; } )( ) ' + Expanding macro 'CALL_LAMBDA' to '( [ & ptr , str ] ( ) mutable { TO_NULL ( & ptr ) ; } ) ( ) ' kindevent location - line168 + line177 col3 file0 @@ -2619,12 +2619,12 @@ - line168 + line177 col3 file0 - line168 + line177 col58 file0 @@ -2640,7 +2640,7 @@ kindevent location - line48 + line57 col1 file0 @@ -2658,12 +2658,12 @@ start - line48 + line57 col1 file0 - line48 + line57 col4 file0 @@ -2671,12 +2671,12 @@ end - line49 + line58 col3 file0 - line49 + line58 col3 file0 @@ -2688,7 +2688,7 @@ kindevent location - line49 + line58 col3 file0 @@ -2696,12 +2696,12 @@ - line49 + line58 col3 file0 - line49 + line58 col17 file0 @@ -2717,7 +2717,7 @@ kindevent location - line168 + line177 col3 file0 @@ -2725,12 +2725,12 @@ - line168 + line177 col3 file0 - line168 + line177 col58 file0 @@ -2746,7 +2746,7 @@ kindevent location - line168 + line177 col3 file0 @@ -2754,12 +2754,12 @@ - line168 + line177 col3 file0 - line168 + line177 col58 file0 @@ -2779,12 +2779,12 @@ start - line169 + line178 col3 file0 - line169 + line178 col3 file0 @@ -2792,12 +2792,12 @@ end - line169 + line178 col8 file0 - line169 + line178 col8 file0 @@ -2809,7 +2809,7 @@ kindevent location - line169 + line178 col8 file0 @@ -2817,12 +2817,12 @@ - line169 + line178 col4 file0 - line169 + line178 col6 file0 @@ -2846,7 +2846,7 @@ issue_hash_function_offset6 location - line169 + line178 col8 file0 @@ -2854,13 +2854,13 @@ 0 - 48 - 49 - 163 - 164 - 165 - 168 - 169 + 57 + 58 + 172 + 173 + 174 + 177 + 178 @@ -2871,20 +2871,20 @@ kindmacro_expansion location - line178 + line187 col3 file0 extended_message - Expanding macro 'PASTE_CODE' to ' { int * ptr = nullptr ; * ptr = 5 ; }' + Expanding macro 'PASTE_CODE' to '{ int * ptr = nullptr ; * ptr = 5 ; } ' message - Expanding macro 'PASTE_CODE' to ' { int * ptr = nullptr ; * ptr = 5 ; }' + Expanding macro 'PASTE_CODE' to '{ int * ptr = nullptr ; * ptr = 5 ; } ' kindevent location - line178 + line187 col3 file0 @@ -2892,12 +2892,12 @@ - line178 + line187 col3 file0 - line186 + line195 col4 file0 @@ -2913,7 +2913,7 @@ kindevent location - line178 + line187 col3 file0 @@ -2921,12 +2921,12 @@ - line178 + line187 col3 file0 - line186 + line195 col4 file0 @@ -2950,7 +2950,7 @@ issue_hash_function_offset1 location - line178 + line187 col3 file0 @@ -2958,8 +2958,8 @@ 0 - 177 - 178 + 186 + 187 @@ -2974,12 +2974,12 @@ start - line199 + line208 col3 file0 - line199 + line208 col5 file0 @@ -2987,12 +2987,12 @@ end - line201 + line210 col3 file0 - line201 + line210 col25 file0 @@ -3004,20 +3004,20 @@ kindmacro_expansion location - line201 + line210 col3 file0 extended_message - Expanding macro 'POTENTIALLY_EMPTY_PARAM' to '; ptr= nullptr ' + Expanding macro 'POTENTIALLY_EMPTY_PARAM' to '; ptr = nullptr ' message - Expanding macro 'POTENTIALLY_EMPTY_PARAM' to '; ptr= nullptr ' + Expanding macro 'POTENTIALLY_EMPTY_PARAM' to '; ptr = nullptr ' kindevent location - line201 + line210 col3 file0 @@ -3025,12 +3025,12 @@ - line201 + line210 col3 file0 - line201 + line210 col31 file0 @@ -3050,12 +3050,12 @@ start - line202 + line211 col3 file0 - line202 + line211 col3 file0 @@ -3063,12 +3063,12 @@ end - line202 + line211 col8 file0 - line202 + line211 col8 file0 @@ -3080,7 +3080,7 @@ kindevent location - line202 + line211 col8 file0 @@ -3088,12 +3088,12 @@ - line202 + line211 col4 file0 - line202 + line211 col6 file0 @@ -3117,7 +3117,7 @@ issue_hash_function_offset4 location - line202 + line211 col8 file0 @@ -3125,10 +3125,10 @@ 0 - 198 - 199 - 201 - 202 + 207 + 208 + 210 + 211 @@ -3143,12 +3143,12 @@ start - line212 + line221 col3 file0 - line212 + line221 col5 file0 @@ -3156,12 +3156,12 @@ end - line214 + line223 col3 file0 - line214 + line223 col20 file0 @@ -3173,20 +3173,20 @@ kindmacro_expansion location - line214 + line223 col3 file0 extended_message - Expanding macro 'NESTED_EMPTY_PARAM' to '; ptr= nullptr ; ' + Expanding macro 'NESTED_EMPTY_PARAM' to '; ptr = nullptr ; ' message - Expanding macro 'NESTED_EMPTY_PARAM' to '; ptr= nullptr ; ' + Expanding macro 'NESTED_EMPTY_PARAM' to '; ptr = nullptr ; ' kindevent location - line214 + line223 col3 file0 @@ -3194,12 +3194,12 @@ - line214 + line223 col3 file0 - line214 + line223 col27 file0 @@ -3219,12 +3219,12 @@ start - line215 + line224 col3 file0 - line215 + line224 col3 file0 @@ -3232,12 +3232,12 @@ end - line215 + line224 col8 file0 - line215 + line224 col8 file0 @@ -3249,7 +3249,7 @@ kindevent location - line215 + line224 col8 file0 @@ -3257,12 +3257,12 @@ - line215 + line224 col4 file0 - line215 + line224 col6 file0 @@ -3286,7 +3286,7 @@ issue_hash_function_offset4 location - line215 + line224 col8 file0 @@ -3294,10 +3294,10 @@ 0 - 211 - 212 - 214 - 215 + 220 + 221 + 223 + 224 @@ -3312,12 +3312,12 @@ start - line224 + line233 col3 file0 - line224 + line233 col5 file0 @@ -3325,12 +3325,12 @@ end - line225 + line234 col3 file0 - line225 + line234 col44 file0 @@ -3342,20 +3342,20 @@ kindmacro_expansion location - line225 + line234 col3 file0 extended_message - Expanding macro 'CALL_FUNCTION_WITH_ONE_PARAM_THROUGH_MACRO' to ' setToNull ( & ptr )' + Expanding macro 'CALL_FUNCTION_WITH_ONE_PARAM_THROUGH_MACRO' to 'setToNull ( & ptr ) ' message - Expanding macro 'CALL_FUNCTION_WITH_ONE_PARAM_THROUGH_MACRO' to ' setToNull ( & ptr )' + Expanding macro 'CALL_FUNCTION_WITH_ONE_PARAM_THROUGH_MACRO' to 'setToNull ( & ptr ) ' kindevent location - line225 + line234 col3 file0 @@ -3363,12 +3363,12 @@ - line225 + line234 col3 file0 - line225 + line234 col61 file0 @@ -3384,7 +3384,7 @@ kindevent location - line48 + line57 col1 file0 @@ -3402,12 +3402,12 @@ start - line48 + line57 col1 file0 - line48 + line57 col4 file0 @@ -3415,12 +3415,12 @@ end - line49 + line58 col3 file0 - line49 + line58 col3 file0 @@ -3432,7 +3432,7 @@ kindevent location - line49 + line58 col3 file0 @@ -3440,12 +3440,12 @@ - line49 + line58 col3 file0 - line49 + line58 col17 file0 @@ -3461,7 +3461,7 @@ kindevent location - line225 + line234 col3 file0 @@ -3469,12 +3469,12 @@ - line225 + line234 col3 file0 - line225 + line234 col61 file0 @@ -3494,12 +3494,12 @@ start - line226 + line235 col3 file0 - line226 + line235 col3 file0 @@ -3507,12 +3507,12 @@ end - line226 + line235 col8 file0 - line226 + line235 col8 file0 @@ -3524,7 +3524,7 @@ kindevent location - line226 + line235 col8 file0 @@ -3532,12 +3532,12 @@ - line226 + line235 col4 file0 - line226 + line235 col6 file0 @@ -3561,7 +3561,7 @@ issue_hash_function_offset3 location - line226 + line235 col8 file0 @@ -3569,12 +3569,12 @@ 0 - 48 - 49 - 223 - 224 - 225 - 226 + 57 + 58 + 232 + 233 + 234 + 235 @@ -3589,12 +3589,12 @@ start - line243 + line252 col3 file0 - line243 + line252 col5 file0 @@ -3602,12 +3602,12 @@ end - line244 + line253 col3 file0 - line244 + line253 col22 file0 @@ -3619,20 +3619,20 @@ kindmacro_expansion location - line244 + line253 col3 file0 extended_message - Expanding macro 'VARIADIC_SET_TO_NULL' to ' ptr= nullptr ; variadicFunc ( 1) ' + Expanding macro 'VARIADIC_SET_TO_NULL' to 'ptr = nullptr ; variadicFunc ( 1 ) ' message - Expanding macro 'VARIADIC_SET_TO_NULL' to ' ptr= nullptr ; variadicFunc ( 1) ' + Expanding macro 'VARIADIC_SET_TO_NULL' to 'ptr = nullptr ; variadicFunc ( 1 ) ' kindevent location - line244 + line253 col3 file0 @@ -3640,12 +3640,12 @@ - line244 + line253 col3 file0 - line244 + line253 col42 file0 @@ -3665,12 +3665,12 @@ start - line245 + line254 col3 file0 - line245 + line254 col3 file0 @@ -3678,12 +3678,12 @@ end - line245 + line254 col8 file0 - line245 + line254 col8 file0 @@ -3695,7 +3695,7 @@ kindevent location - line245 + line254 col8 file0 @@ -3703,12 +3703,12 @@ - line245 + line254 col4 file0 - line245 + line254 col6 file0 @@ -3732,7 +3732,7 @@ issue_hash_function_offset3 location - line245 + line254 col8 file0 @@ -3740,10 +3740,10 @@ 0 - 242 - 243 - 244 - 245 + 251 + 252 + 253 + 254 @@ -3758,12 +3758,12 @@ start - line260 + line269 col3 file0 - line260 + line269 col5 file0 @@ -3771,12 +3771,12 @@ end - line261 + line270 col3 file0 - line261 + line270 col30 file0 @@ -3788,20 +3788,20 @@ kindmacro_expansion location - line261 + line270 col3 file0 extended_message - Expanding macro 'DECLARE_FUNC_AND_SET_TO_NULL' to 'void generated_ ## whatever( ) ; ptr= nullptr ; ' + Expanding macro 'DECLARE_FUNC_AND_SET_TO_NULL' to 'void generated_ ## whatever ( ) ; ptr = nullptr ; ' message - Expanding macro 'DECLARE_FUNC_AND_SET_TO_NULL' to 'void generated_ ## whatever( ) ; ptr= nullptr ; ' + Expanding macro 'DECLARE_FUNC_AND_SET_TO_NULL' to 'void generated_ ## whatever ( ) ; ptr = nullptr ; ' kindevent location - line261 + line270 col3 file0 @@ -3809,12 +3809,12 @@ - line261 + line270 col3 file0 - line261 + line270 col45 file0 @@ -3834,12 +3834,12 @@ start - line262 + line271 col3 file0 - line262 + line271 col3 file0 @@ -3847,12 +3847,12 @@ end - line262 + line271 col8 file0 - line262 + line271 col8 file0 @@ -3864,7 +3864,7 @@ kindevent location - line262 + line271 col8 file0 @@ -3872,12 +3872,12 @@ - line262 + line271 col4 file0 - line262 + line271 col6 file0 @@ -3901,7 +3901,7 @@ issue_hash_function_offset3 location - line262 + line271 col8 file0 @@ -3909,10 +3909,10 @@ 0 - 259 - 260 - 261 - 262 + 268 + 269 + 270 + 271 @@ -3927,12 +3927,12 @@ start - line273 + line282 col3 file0 - line273 + line282 col5 file0 @@ -3940,12 +3940,12 @@ end - line274 + line283 col3 file0 - line274 + line283 col11 file0 @@ -3957,20 +3957,20 @@ kindmacro_expansion location - line274 + line283 col3 file0 extended_message - Expanding macro 'PRINT_STR' to 'print ( # Hello) ; ptr= nullptr ' + Expanding macro 'PRINT_STR' to 'print ( # Hello ) ; ptr = nullptr ' message - Expanding macro 'PRINT_STR' to 'print ( # Hello) ; ptr= nullptr ' + Expanding macro 'PRINT_STR' to 'print ( # Hello ) ; ptr = nullptr ' kindevent location - line274 + line283 col3 file0 @@ -3978,12 +3978,12 @@ - line274 + line283 col3 file0 - line274 + line283 col23 file0 @@ -4003,12 +4003,12 @@ start - line275 + line284 col3 file0 - line275 + line284 col3 file0 @@ -4016,12 +4016,12 @@ end - line275 + line284 col8 file0 - line275 + line284 col8 file0 @@ -4033,7 +4033,7 @@ kindevent location - line275 + line284 col8 file0 @@ -4041,12 +4041,12 @@ - line275 + line284 col4 file0 - line275 + line284 col6 file0 @@ -4070,7 +4070,7 @@ issue_hash_function_offset3 location - line275 + line284 col8 file0 @@ -4078,10 +4078,10 @@ 0 - 272 - 273 - 274 - 275 + 281 + 282 + 283 + 284 Index: test/Analysis/plist-macros-with-expansion.cpp =================================================================== --- test/Analysis/plist-macros-with-expansion.cpp +++ test/Analysis/plist-macros-with-expansion.cpp @@ -11,6 +11,15 @@ // Check the macro expansions from the plist output here, to make the test more // understandable. // RUN: FileCheck --input-file=%t.plist %s +// +// RUN: %clang_analyze_cc1 -analyzer-checker=core %s \ +// RUN: -analyzer-output=plist -o %t-as-events.plist \ +// RUN: -analyzer-config expand-macros=true \ +// RUN: -analyzer-config expand-macros-as-events=true +// +// We're only interested in the generated plist file in this case. +// RUN: cat %t-as-events.plist | %diff_plist \ +// RUN: %S/Inputs/expected-plists/plist-macros-with-expansion.cpp-as-events.plist void print(const void*);