https://llvm.org/bugs/show_bug.cgi?id=29069

            Bug ID: 29069
           Summary: Checking for use of references to an automatic
                    variable outside of its scope
           Product: clang
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 17012
  --> https://llvm.org/bugs/attachment.cgi?id=17012&action=edit
This archive contains the .cpp file and the makefile described above

Hello, I'd like clang's static code analyser to be able to detect use of
references to an automatic variable outside of its scope. I've attached a
test-case that shows a bit of code that takes pointer to an automatic variable
and use that pointer outside the scope of the original automatic variable. I
have also attached a make file that compiles the .cpp file so that it can be
run with scan-build to run the static code analyser on the .cpp file.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to