コードインスペクション
コード品質検査により、古いコードをモダナイズ。LLVM / ClangベースのVisual Assistのコード検査機能は、スタイル違反、インターフェイスの誤用、静的分析によって推測できるバグといった一般的なプログラミングエラーを診断/修正できます。
コードインスペクションの設定
Visual Assistのオプションダイアログで「Code Inspection」を有効にし、特定のコード品質検査機能にチェックを入れます。LLVM / ClangのパーサーがVisual Studioとは別のプロセスで実行され、IDEのパーフォーマンス低下を回避します。

エディターでコードの問題を指摘
編集中にコード品質をチェック可能
機能が有効になっていると、Visual Studioのテキストエディターにコードの問題が強調表示されます。特に問題のある最初の数文字に実線または点線が引かれます。

問題箇所の上にカーソルを合わせると、詳細を確認できます。

エディターでのクイック修正
編集中にコードを修正
問題の詳細箇所をクリックして、修正方法を確認します。

修正方法を受け入れ、適用します。

ツールウィンドウでのクイック修正
コードを一括修正
ツールウィンドウからも、現在のファイルのコードのすべての問題を特定できます。特定レベルまたはコードインスペクションでのすべての問題に、一括修正を適用できます。
