1. 20 Sep, 2018 - 1 commit
  2. 22 Aug, 2018 - 2 commits
    • Simon Hausmann's avatar
      Fix linking libclang with mingw when cross-compiling · 58af8597
      Simon Hausmann authored
      Commit 4ec82667 moved the
      
          mingw: CLANG_LIBS += -ldl
      
      condition from a option(host_build) .pro file to qt_find_clang.prf which
      is evaluated in target scope. That means when cross-compiling, we can't
      use mingw anymore as a way to detect the host compiler.
      
      Instead, rely on MinGW being the only alternative to MSVC that we
      support as a host compiler when cross-compiling. The msvc part is dealt
      with earlier in the file.
      
      Also cleaned up the LLVM_INSTALL_DIR determination that suffers from the
      same symptom (commit ac6de68f
      
      ), where
      the msvc bit needs a proper scope for the else to work correctly.
      
      Task-number: QTBUG-69793
      Change-Id: Id544c7929b79fc3c8763d50e0bac4a3a689ade60
      Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@qt.io>
      58af8597
    • Simon Hausmann's avatar
      Fix linking of qdoc against libclang when cross-compiling to QNX/Android · ac6de68f
      Simon Hausmann authored
      
      When cross-compiling to QNX, qt_find_clang.prf is evaluated against the
      target configuration, so the check for "mingw" to select the right
      LLVM_INSTALL_DIR variant does not work as that's the host configuration.
      
      So instead we must formulate the conditions differently and rely on the
      fact that we are either using MSVC where the same compiler is used for
      host and target architecture (even if the architectures differ) or
      otherwise minwg is the host compiler (while target may be something
      else).
      
      Task-number: QTBUG-69793
      Change-Id: I31acc127c94e0a8570242d1c8ea0db873f9fd253
      Reviewed-by: default avatarSimo Fält <simo.falt@qt.io>
      ac6de68f
  3. 09 Aug, 2018 - 1 commit
  4. 02 Jul, 2018 - 1 commit
  5. 05 Jun, 2018 - 1 commit
  6. 16 May, 2018 - 1 commit
  7. 14 May, 2018 - 1 commit
  8. 03 May, 2018 - 2 commits
  9. 29 Apr, 2018 - 1 commit
  10. 18 Jan, 2018 - 1 commit
  11. 09 Jan, 2018 - 1 commit
  12. 19 Dec, 2017 - 1 commit
  13. 14 Dec, 2017 - 1 commit
  14. 11 Oct, 2017 - 2 commits
  15. 10 Aug, 2017 - 2 commits
    • Martin Smith's avatar
      qdoc: Add "clangdefines" to Config class · 5b090261
      Martin Smith authored
      
      The qdoc 'defines' config variable lists values
      that contain '*' to represent wildcards, but clang
      doesn't accept them. This change adds a new config
      variable called 'clangdefines' which explicitly
      lists all the defines that match the wildcards.
      It also lists several Qt defines for C++11 stuff,
      because when clangqdoc comes into use, all the
      supported compilers for Qt will support C++11
      constructs.
      
      There might be a few defines listed in clangdefines
      that are unnecessary and maybe a few that we really
      should not include, but we can adjust the list as
      needed.
      
      Also included in this change: Tell clang never to fail
      (i.e. keep parsing no matter how many errors are found),
      and tell clang not to print parsing errors, because they
      obscure the qdoc errors in the output. clangqdoc should
      assume that the source files are correct, but some of the
      include files, especially system level stuff, will not be
      present. clangqdoc doesn't care about these missing files,
      because they aren't part of the documentation.
      
      Change-Id: I84e1cae24d961a82d16ee705333d6f36955d35de
      Reviewed-by: default avatarTopi Reiniö <topi.reinio@qt.io>
      5b090261
    • Olivier Goffart's avatar
      Use clang as a parser in qdoc · b032aee5
      Olivier Goffart authored
      
      The file qt_find_clang.prf is inspired by qtcreator's clang_installation.pri.
      The code from the while loop in ClangVisitor::parseProperty contains code
      moved from CppCodeParser::matchProperty. The code in the for loop of
      ClangCodeParser::parseSourceFile (from the "Doc parses the comment"), is mostly
      moved from CppCodeParser::matchDocsAndStuff.
      
      In CppCodeParser, most of the code is removed since clang is used for parsing.
      We just need to leave enough to parse the declaration in the comments which
      still use the old parser (\fn, ...)
      
      Known issues:
      - When the parameter name is a comment, it is lost.
        (e.g. QObject::eventFilter(QObject * /* watched */, QEvent * /* event */)
      - I can't compute default parameters when they are expanded from a macro.
        (e.g. QObject::tr)
      - Instances of #ifndef Q_QDOC need to be reviewed
      
      Change-Id: I92d4ca4fc52810d9d3de433147a9953eea3a1802
      Reviewed-by: default avatarTopi Reiniö <topi.reinio@qt.io>
      b032aee5