http://llvm.org/bugs/show_bug.cgi?id=21992

            Bug ID: 21992
           Summary: Add Clang-Tidy checks for localizing variables
           Product: new-bugs
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Hi!

It'll be great to implement suggestion for localizing variables. 

It's simpler in case of conditional statements, where variable is used in one
of branches. It's harder to do in case of loops, when variable may be
re-initialized on each iteration or accumulate value with each iteration.

Background of request: my project have quite a lot long functions (~ 100 kB of
code) where place of usage and life cycle of variables are hard to track.

Eugene.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to