set(LLVM_LINK_COMPONENTS support)

add_clang_library(clangTidyMiscModule
  ArgumentCommentCheck.cpp
  AssertSideEffectCheck.cpp
  UnconventionalAssignOperatorCheck.cpp
  BoolPointerImplicitConversionCheck.cpp
  DanglingHandleCheck.cpp
  DefinitionsInHeadersCheck.cpp
  FoldInitTypeCheck.cpp
  ForwardDeclarationNamespaceCheck.cpp
  InaccurateEraseCheck.cpp
  IncorrectRoundings.cpp
  InefficientAlgorithmCheck.cpp
  MacroParenthesesCheck.cpp
  MacroRepeatedSideEffectsCheck.cpp
  MiscTidyModule.cpp
  MisplacedWideningCastCheck.cpp
  MoveConstantArgumentCheck.cpp
  MoveConstructorInitCheck.cpp
  MultipleStatementMacroCheck.cpp
  NewDeleteOverloadsCheck.cpp
  NoexceptMoveConstructorCheck.cpp
  NonCopyableObjects.cpp
  PointerAndIntegralOperationCheck.cpp
  RedundantExpressionCheck.cpp
  SizeofContainerCheck.cpp
  SizeofExpressionCheck.cpp
  StaticAssertCheck.cpp
  StringConstructorCheck.cpp
  StringIntegerAssignmentCheck.cpp
  StringLiteralWithEmbeddedNulCheck.cpp
  SuspiciousMissingCommaCheck.cpp
  SuspiciousSemicolonCheck.cpp
  SuspiciousStringCompareCheck.cpp
  SwappedArgumentsCheck.cpp
  ThrowByValueCatchByReferenceCheck.cpp
  UndelegatedConstructor.cpp
  UniqueptrResetReleaseCheck.cpp
  UnusedAliasDeclsCheck.cpp
  UnusedParametersCheck.cpp
  UnusedRAIICheck.cpp
  UnusedUsingDeclsCheck.cpp
  VirtualNearMissCheck.cpp

  LINK_LIBS
  clangAST
  clangASTMatchers
  clangBasic
  clangLex
  clangTidy
  clangTidyUtils
  )

set(LLVM_LINK_COMPONENTS support)

add_clang_library(clangTidyMiscModule
  ArgumentCommentCheck.cpp
  AssertSideEffectCheck.cpp
  UnconventionalAssignOperatorCheck.cpp
  BoolPointerImplicitConversionCheck.cpp
  DanglingHandleCheck.cpp
  DefinitionsInHeadersCheck.cpp
  FoldInitTypeCheck.cpp
  ForwardDeclarationNamespaceCheck.cpp
  InaccurateEraseCheck.cpp
  IncorrectRoundings.cpp
  InefficientAlgorithmCheck.cpp
  MacroParenthesesCheck.cpp
  MacroRepeatedSideEffectsCheck.cpp
  MiscTidyModule.cpp
  MisplacedWideningCastCheck.cpp
  MoveConstantArgumentCheck.cpp
  MoveConstructorInitCheck.cpp
  MultipleStatementMacroCheck.cpp
  NewDeleteOverloadsCheck.cpp
  NoexceptMoveConstructorCheck.cpp
  NonCopyableObjects.cpp
  PointerAndIntegralOperationCheck.cpp
  RedundantExpressionCheck.cpp
  SizeofContainerCheck.cpp
  SizeofExpressionCheck.cpp
  StaticAssertCheck.cpp
  StringConstructorCheck.cpp
  StringIntegerAssignmentCheck.cpp
  StringLiteralWithEmbeddedNulCheck.cpp
  SuspiciousMissingCommaCheck.cpp
  SuspiciousSemicolonCheck.cpp
  SuspiciousStringCompareCheck.cpp
  SwappedArgumentsCheck.cpp
  ThrowByValueCatchByReferenceCheck.cpp
  UndelegatedConstructor.cpp
  UniqueptrResetReleaseCheck.cpp
  UnusedAliasDeclsCheck.cpp
  UnusedParametersCheck.cpp
  UnusedRAIICheck.cpp
  UnusedUsingDeclsCheck.cpp
  VirtualNearMissCheck.cpp

  LINK_LIBS
  clangAST
  clangASTMatchers
  clangBasic
  clangLex
  clangTidy
  clangTidyUtils
  clangTooling
  )

Add missing dependency of libtooling to misc module
[clang-tidy] Add missing dependency of libtooling to misc module

Summary:
The new API for fixit is in libtooling and the library misc in clang-tidy
didn't had the appropriate dependency.

This commit was breaking some build bots:
http://reviews.llvm.org/D19547

This commit tried (but failed) to fix it:
http://reviews.llvm.org/D20180

To repro, you can make a build with these flags:
```
cmake -DBUILD_SHARED_LIBS=ON
```

Thanks rnk@ for helping figuring out.

Reviewers: alexfh, rnk

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D20182

git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@269240 91177308-0d34-0410-b5e6-96231b3b80d8
