Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-5393

Namespace not taken into account when #include preprocessing directive is used in place of actual declarations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 2.2.1
    • C/C++/Obj-C++ Support
    • None
    • Linux Ubuntu 11.04

    Description

      This seems bad style to me but is used at least in the armadillo library

      namespace nspace {
         #include "someheader.h"
         #include ...
         ...
      }
      

      This confuse the analyzer which doesn't do preprocessing IMO.
      As a workaround you have to manually relocate the namespace directly in the headers.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              erikv Erik Verbruggen
              mirfax Akril Katori
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes