Summary: This adds generic support for reporting error traces as usual infer issues traces (instead of putting them in the textual description of the error) to Trace.ml and SinkTrace.ml. The siof checker is made to use these new traces, and gets an improved error message mentioning the name of the problematic global as well, which requires a slight API change in Pvar.re. The support in Trace.ml is incomplete: passthroughs are ignored. This missing feature will be needed by Quandary to migrate its error messages. Reviewed By: sblackshear Differential Revision: D4159542 fbshipit-source-id: 8c1101dmaster
parent
25759199cf
commit
0085417e0d
@ -1,4 +1,4 @@
|
||||
siof/const_use.cpp:17: ERROR: STATIC_INITIALIZATION_ORDER_FIASCO This global variable initializer accesses the following globals in another translation unit: u.
|
||||
siof/pod_across_translation_units-1.cpp:13: ERROR: STATIC_INITIALIZATION_ORDER_FIASCO This global variable initializer accesses the following globals in another translation unit: y from file siof/pod_across_translation_units-2.cpp. Full path: baz at [line 13] => bar at [line 12] => foo at [line 11]
|
||||
siof/siof_across_translation_units-1.cpp:21: ERROR: STATIC_INITIALIZATION_ORDER_FIASCO This global variable initializer accesses the following globals in another translation unit: another_global_object from file siof/siof_across_translation_units-1.cpp.
|
||||
siof/siof_across_translation_units-1.cpp:21: ERROR: STATIC_INITIALIZATION_ORDER_FIASCO This global variable initializer accesses the following globals in another translation unit: global_object.
|
||||
siof/const_use.cpp, __infer_globals_initializer_use_u, 0, STATIC_INITIALIZATION_ORDER_FIASCO
|
||||
siof/pod_across_translation_units-1.cpp, __infer_globals_initializer_x, 0, STATIC_INITIALIZATION_ORDER_FIASCO
|
||||
siof/siof_across_translation_units-1.cpp, __infer_globals_initializer_another_global_object, 0, STATIC_INITIALIZATION_ORDER_FIASCO
|
||||
siof/siof_across_translation_units-1.cpp, __infer_globals_initializer_another_global_object, 0, STATIC_INITIALIZATION_ORDER_FIASCO
|
||||
|
Loading…
Reference in new issue