Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Adding flag to clang for detecting problems in code
Forum Updated to NodeBB v4.3 + New Features

Adding flag to clang for detecting problems in code

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 300 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • fcarneyF Offline
    fcarneyF Offline
    fcarney
    wrote on last edited by
    #1

    I want to add a flag to tell clang to complain about local variable shadowing. I thought clang also responded to flags set on the compiler such as:

    QMAKE_CXXFLAGS += -Wshadow-all
    

    I want the in editor warnings to complain about variable shadowing. I understand there is a version of clang that provides these kinds of warnings in the editor. I looked at the Options in Qt Creator under the Analyzer->Clang Tools tab. But I am unsure if this is the place to add flags like this.

    C++ is a perfectly valid school of magic.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved